Skip to content

Instantly share code, notes, and snippets.

@livestreamer
Created November 30, 2011 09:36
Show Gist options
  • Save livestreamer/1408511 to your computer and use it in GitHub Desktop.
Save livestreamer/1408511 to your computer and use it in GitHub Desktop.
HTTPClient Default Timeouts
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