* lib/net/imap.rb (disconnect): call shutdown for

SSLSocket. Thanks, Technorama Ltd.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2007-04-09 00:29:48 +00:00
parent 233a94b91e
commit 687637e280
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 9 09:30:44 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (disconnect): call shutdown for
SSLSocket. Thanks, Technorama Ltd.
Thu Apr 5 00:42:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* error.c (rb_notimplement), io.c (pipe_open): removed definite

View file

@ -284,7 +284,11 @@ module Net
# Disconnects from the server.
def disconnect
@sock.shutdown unless @usessl
if SSL::SSLSocket === @sock
@sock.io.shutdown
else
@sock.shutdown
end
@receiver_thread.join
@sock.close
end