We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b69bf5 commit 6ac3e8aCopy full SHA for 6ac3e8a
lib/net/http/persistent.rb
@@ -621,7 +621,7 @@ def connection_for uri
621
end
622
623
http.read_timeout = @read_timeout if @read_timeout
624
- http.keep_alive_timeout = @idle_timeout if @idle_timeout && http.respond_to?(:keep_alive_timeout=)
+ http.keep_alive_timeout = @idle_timeout if @idle_timeout
625
626
return yield connection
627
rescue Errno::ECONNREFUSED
0 commit comments