Since Faraday doesn’t have documentation, I wasn’t able to find it out anywhere. What is “timeout” and what “open timeout” in Faraday?
Since Faraday doesn’t have documentation, I wasn’t able to find it out anywhere. What
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you look at the source code at https://github.com/lostisland/faraday/blob/master/lib/faraday/request.rb then you’ll see:
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:
So Faraday’s open_timeout is equivalent to Net::HTTP’s open_timeout which is documented as:
And Faraday’s timeout is equivalent to Net::HTTP’s read_timeout which is documented as: