From: Stuart Stegall Date: 2006-04-29T06:58:33+09:00 Subject: Re: IMAP disconnect broken? Eric Hodel wrote: > > On Apr 25, 2006, at 2:21 PM, Bealach Na Bo wrote: > >> Hi folks, >> >> New Ruby convert here :) >> >> I'm using the standard Net::IMAP and OpenSSL libraries to connect to >> an IMAP server. >> I can connect, examine and manipulate my INBOX, but when call the >> disconnect method of the imap instance it just hangs. The minimal >> version is almost identical to >> the example on page 701 of "Programming Ruby". Should I be calling >> some other method? > > I don't know, the disconnect method is suspect: > > # Disconnects from the server. > def disconnect > @sock.shutdown unless @usessl > @receiver_thread.join > @sock.close > end > I cannot replicate the problem with my imap4 server.