Actions
Bug #4246
closedNet::HTTP does not timeout during SSL connection handshake
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.5.0]
Backport:
Description
=begin
If you open a SSL connection and it hangs while doing the SSL connection handshake then it does not timeout unless you end up hitting a TCP keepalive timeout.
The problem is that the open_timeout is only applied to the actual TCP socket being opened and not the SSL negotiation.
Also an issue in ruby 1.8.{6,7}.
Attached is a patch against 1.9.2. The patch also ensures that the socket gets closed if we error out in connect after it has been opened.
=end
Files
Actions
Like0
Like0Like0