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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)