mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (disconnect): call shutdown for
SSLSocket. Thanks, Technorama Ltd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e12090b9b2
commit
6df7c0c721
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Apr 9 09:24:32 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (disconnect): call shutdown for
|
||||
SSLSocket. Thanks, Technorama Ltd.
|
||||
|
||||
Sun Apr 8 13:28:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* compile.c (defined_expr): test arguments of NODE_CALL and so
|
||||
|
|
|
@ -287,7 +287,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
|
||||
|
|
Loading…
Reference in a new issue