Tuesday, December 6, 2011

Custom timeout for Net::HTTP Requests in Ruby


http = Net::HTTP.new(host, port)
http.read_timeout = "timeout in milliseconds"


No comments:

Post a Comment