mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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:
parent
233a94b91e
commit
687637e280
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
Thu Apr 5 00:42:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* error.c (rb_notimplement), io.c (pipe_open): removed definite
|
* error.c (rb_notimplement), io.c (pipe_open): removed definite
|
||||||
|
|
|
@ -284,7 +284,11 @@ module Net
|
||||||
|
|
||||||
# Disconnects from the server.
|
# Disconnects from the server.
|
||||||
def disconnect
|
def disconnect
|
||||||
@sock.shutdown unless @usessl
|
if SSL::SSLSocket === @sock
|
||||||
|
@sock.io.shutdown
|
||||||
|
else
|
||||||
|
@sock.shutdown
|
||||||
|
end
|
||||||
@receiver_thread.join
|
@receiver_thread.join
|
||||||
@sock.close
|
@sock.close
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue