Faraday: What are the default timeouts?

Created on 12 Jul 2017  ·  2Comments  ·  Source: lostisland/faraday

Having trouble finding it in the code.

Most helpful comment

FTR, Net::HTTP default open_timeout and read_timeout is 60 seconds since ruby 2.3.

All 2 comments

Hi @stevepm,
Short answer: There are no default timeouts, or put in another way, default timeouts are infinite.

Detailed explanation: This might actually change based on the adapter you choose. Faraday doesn't set the adapter timeout unless you enforce it, so the "adapter default" is the one used. In most cases (if not all) this means no timeout. I haven't used all the adapter so I can't tell you te default for each of them, however the default one (Net::HTTP) has no timeout by default

FTR, Net::HTTP default open_timeout and read_timeout is 60 seconds since ruby 2.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

t3hk0d3 picture t3hk0d3  ·  3Comments

QuinnWilton picture QuinnWilton  ·  4Comments

luizkowalski picture luizkowalski  ·  3Comments

JasonBarnabe picture JasonBarnabe  ·  4Comments

Lewiscowles1986 picture Lewiscowles1986  ·  4Comments