Method: Gem::Net::HTTP#keep_alive_timeout
- Defined in:
- lib/rubygems/vendor/net-http/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.
1469 1470 1471 |
# File 'lib/rubygems/vendor/net-http/lib/net/http.rb', line 1469 def keep_alive_timeout @keep_alive_timeout end |