Created
November 30, 2011 09:36
-
-
Save livestreamer/1408511 to your computer and use it in GitHub Desktop.
HTTPClient Default Timeouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'httpclient' | |
client = HTTPClient.new | |
puts "client.connect_timeout = #{client.connect_timeout}" # => client.connect_timeout = 60 | |
puts "client.send_timeout = #{client.send_timeout}" # => client.send_timeout = 120 | |
puts "client.receive_timeout = #{client.receive_timeout}" # => client.receive_timeout = 60 | |
puts "client.keep_alive_timeout = #{client.keep_alive_timeout}" # => client.keep_alive_timeout = 15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment