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 UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
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)