Project

General

Profile

Actions

Backport #3707

closed

Net::IMAP#disconnect does not close when use_ssl = true

Added by nahi (Hiroshi Nakamura) over 13 years ago. Updated about 13 years ago.


Description

=begin
imap = Net::IMAP.new('imap.gmail.com', 993, true)
imap.disconnect
p imap.disconnected? #=> false for ruby_1_8, true fo 1.9

'@sock.sync_close = true' needed just after creating SSLSocket instance like 1.9.
(r13656 includes this fix)

cf. https://jira.codehaus.org/browse/JRUBY-5019
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0