summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-19 23:38:31 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-19 23:38:31 +0000
commitece6c6741e533ee3f0ce04e3454dde61604c9053 (patch)
tree7f620350c5a9e6005503bf406d87eac9cc7c90a7 /lib/net
parent016586824f87d2b70641b1e344bac87b7aa752f2 (diff)
downloadruby-ece6c6741e533ee3f0ce04e3454dde61604c9053.tar.gz
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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/pop.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 60da7a0dd7..4e2bcb4015 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -550,7 +550,7 @@ module Net
context.set_params(@ssl_params)
s = OpenSSL::SSL::SSLSocket.new(s, context)
s.sync_close = true
- s.connect
+ ssl_socket_connect(s, @open_timeout)
if context.verify_mode != OpenSSL::SSL::VERIFY_NONE
s.post_connection_check(@address)
end