Method: Net::HTTP#keep_alive_timeout

Defined in:
lib/net/http.rb

#keep_alive_timeoutObject

Seconds to reuse the connection of the previous request. If the idle time is less than this Keep-Alive Timeout, Net::HTTP reuses the TCP/IP socket used by the previous communication. The default value is 2 seconds.



820
821
822
# File 'lib/net/http.rb', line 820

def keep_alive_timeout
  @keep_alive_timeout
end