Method: Net::HTTP#read_timeout
- Defined in:
- lib/net/http.rb
#read_timeout ⇒ Object
Number of seconds to wait for one block to be read (via one read(2) call). Any number may be used, including Floats for fractional seconds. If the HTTP object cannot read data in this many seconds, it raises a Net::ReadTimeout exception. The default value is 60 seconds.
768 769 770 |
# File 'lib/net/http.rb', line 768 def read_timeout @read_timeout end |