From ece6c6741e533ee3f0ce04e3454dde61604c9053 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 19 Jul 2017 23:38:31 +0000 Subject: lib/net/pop.rb: support timeout for TLS handshake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/net/pop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3