4

Does Net::HTTP.get_response timeout after some number of seconds?
If it does not, is there a way for me to add a timeout?

user3752900
  • 85
  • 1
  • 1
  • 7
  • possible duplicate of [Setting an HTTP Timeout in Ruby 1.9.3](http://stackoverflow.com/questions/24387405/setting-an-http-timeout-in-ruby-1-9-3) – Max Sep 29 '14 at 19:20
  • i'm not sure if i want open_timeout, but otherwise that may be what i'm looking for – user3752900 Sep 29 '14 at 19:32

1 Answers1

1

There doesn't seem to be any method nor attributes for either Net:HTTP.get_response and/or Net:HTTP.get_print as per latest documentation. There is a nice blog post that documents the basics for setting the timeouts though.

Pavel Frkal
  • 11
  • 1
  • 2