What is “timeout” and “open timeout” in Faraday?
If you look at the source code at https://github.com/lostisland/faraday/blob/master/lib/faraday/request.rb then you’ll see: # :timeout – open/read timeout Integer in seconds # :open_timeout – read timeout Integer in seconds Not very helpful, perhaps? Well, if you look at Faraday’s Net::HTTP adapter at https://github.com/lostisland/faraday/blob/master/lib/faraday/adapter/net_http.rb, you’ll see: http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout] http.open_timeout = req[:open_timeout] if … Read more