ruby-changes:47258
From: shugo <ko1@a...>
Date: Thu, 20 Jul 2017 08:38:37 +0900 (JST)
Subject: [ruby-changes:47258] shugo:r59373 (trunk): lib/net/pop.rb: support timeout for TLS handshake
shugo 2017-07-20 08:38:31 +0900 (Thu, 20 Jul 2017) New Revision: 59373 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59373 Log: lib/net/pop.rb: support timeout for TLS handshake Patch by ahorek (Pavel Rosick?\195?\189). [ruby-core:80490] [Feature #13389] Modified files: trunk/lib/net/pop.rb Index: lib/net/pop.rb =================================================================== --- lib/net/pop.rb (revision 59372) +++ lib/net/pop.rb (revision 59373) @@ -550,7 +550,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/lib/net/pop.rb#L550 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/