lib/net/pop.rb: support timeout for TLS handshake
Patch by ahorek (Pavel Rosický). [ruby-core:80490] [Feature #13389] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
016586824f
commit
ece6c6741e
@ -550,7 +550,7 @@ module Net
|
|||||||
context.set_params(@ssl_params)
|
context.set_params(@ssl_params)
|
||||||
s = OpenSSL::SSL::SSLSocket.new(s, context)
|
s = OpenSSL::SSL::SSLSocket.new(s, context)
|
||||||
s.sync_close = true
|
s.sync_close = true
|
||||||
s.connect
|
ssl_socket_connect(s, @open_timeout)
|
||||||
if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
|
||||||
s.post_connection_check(@address)
|
s.post_connection_check(@address)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user