Read more

Heads up: Ruby's Net::HTTP silently retries a failing request

Dominik Schöler
March 26, 2020Software engineer at makandra GmbH

Ruby's Net::HTTP library repeats a failing request once Show archive.org snapshot , as long as it deems it idempotent (GET, HEAD etc). Both requests will use the configured timeout. Hence, if both requests time out, Net::HTTP will only return after twice the configured timeout.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This can become an issue if you rely on the timeout to strike precisely.

Posted by Dominik Schöler to makandra dev (2020-03-26 14:04)