Method: Net::HTTP#open_timeout
- Defined in:
- lib/net/http.rb
#open_timeout ⇒ Object
Number of seconds to wait for the connection to open. Any number may be used, including Floats for fractional seconds. If the HTTP object cannot open a connection in this many seconds, it raises a Net::OpenTimeout exception. The default value is 60 seconds.
762 763 764 |
# File 'lib/net/http.rb', line 762 def open_timeout @open_timeout end |