From 3ce19c89c4a850a532067089297234e9f4235765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Rosick=C3=BD?= Date: Wed, 29 Mar 2017 20:59:57 +0200 Subject: [PATCH 1/2] ssl_socket_connect for imap --- lib/net/imap.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net/imap.rb b/lib/net/imap.rb index ee878c8415..bec44ff8a5 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -200,7 +200,7 @@ module Net # Goldsmith, D. and Davis, M., "UTF-7: A Mail-Safe Transformation Format of # Unicode", RFC 2152, May 1997. # - class IMAP + class IMAP < Protocol include MonitorMixin if defined?(OpenSSL::SSL) include OpenSSL @@ -1523,7 +1523,7 @@ def start_tls_session(params = {}) end @sock = SSLSocket.new(@sock, context) @sock.sync_close = true - @sock.connect + ssl_socket_connect(@sock, @open_timeout) if context.verify_mode != VERIFY_NONE @sock.post_connection_check(@host) end -- 2.11.0.windows.3