Method: Net::HTTP#keep_alive_timeout
- Defined in:
- lib/net/http.rb
#keep_alive_timeout ⇒ Object
Sets or returns the numeric (Integer or Float) number of seconds to keep the connection open after a request is sent; initially 2. If a new request is made during the given interval, the still-open connection is used; otherwise the connection will have been closed and a new connection is opened.
1463 1464 1465 |
# File 'lib/net/http.rb', line 1463 def keep_alive_timeout @keep_alive_timeout end |