Skip to content

Instantly share code, notes, and snippets.

@nahi
Created August 18, 2010 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nahi/534127 to your computer and use it in GitHub Desktop.
Save nahi/534127 to your computer and use it in GitHub Desktop.
index b42b0d1..578f51e 100644
--- a/lib/ruby/1.8/net/imap.rb
+++ b/lib/ruby/1.8/net/imap.rb
@@ -901,6 +901,7 @@ module Net
context.verify_callback = VerifyCallbackProc
end
@sock = SSLSocket.new(@sock, context)
+ @sock.sync_close = true
@sock.connect # start ssl session.
@sock.post_connection_check(@host) if verify
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment