1

I was looking through the RestClient library, and trying to find the default timeout values. In v1.6.7, I see only a open_timeout and a timeout, but they seem to be only available within the library itself.

Looking through the library code, I am unable to determine what the default values are for these timeouts, nor was I able to figure out how to debug and have it spit out these values. Anyone know how I can get the library to output what these values are?

Part of my issue is most likely due to my beginner knowledge of Ruby, apologies!

2

1 Answer 1

1

From the docs:

By default the timeout for a request is 60 seconds.

I only had a quick look at the source but I suspect the timeout value comes from Net::HTTP on which it depends rather than RestClient.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.