Project

General

Profile

Bug #465

`Errno::ENOTCONN: Socket is not connected' in test/net/imap

Added by znz (Kazuhiro NISHIYAMA) almost 10 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-dev:35898]

Description

=begin
test/net/imapでも同様にErrno::ENOTCONNになります。

48) Error:
test_unexpected_eof(IMAPTest):
Errno::ENOTCONN: Socket is not connected
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:295:in shutdown'
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:295:in
rescue in disconnect'
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/lib/net/imap.rb:290:in disconnect'
/Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/net/imap/test_imap.rb:108:in
test_unexpected_eof'

以下パッチです。

Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb (revision 18748)
+++ lib/net/imap.rb (working copy)
@@ -288,11 +288,15 @@
# Disconnects from the server.
def disconnect
begin

  • # try to call SSL::SSLSocket#io.
  • @sock.io.shutdown
  • rescue NoMethodError
  • # @sock is not an SSL::SSLSocket.
  • @sock.shutdown
  • begin
  • # try to call SSL::SSLSocket#io.
  • @sock.io.shutdown
  • rescue NoMethodError
  • # @sock is not an SSL::SSLSocket.
  • @sock.shutdown
  • end
  • rescue Errno::ENOTCONN
  • # ignore `Errno::ENOTCONN: Socket is not connected' on some platforms. end @receiver_thread.join @sock.close =end

Associated revisions

Revision e276482e
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 39491
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

Revision 39491
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

Revision 39491
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

Revision 39491
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

Revision 39491
Added by drbrain (Eric Hodel) about 5 years ago

  • lib/rubygems/config_file.rb: Lazily load .gem/credentials to only check permissions when necessary. RubyGems bug #465
  • test/rubygems/test_gem_config_file.rb: Test for the above.

  • test/rubygems/test_gem_commands_push_command.rb: Remove duplicated
    test.

Revision 6ff931d6
Added by nagachika (Tomoyuki Chikanaga) about 5 years ago

merge revision(s) 39491: [Backport #8403]

* lib/rubygems/config_file.rb:  Lazily load .gem/credentials to only
  check permissions when necessary.  RubyGems bug #465

* test/rubygems/test_gem_config_file.rb:  Test for the above.

* test/rubygems/test_gem_commands_push_command.rb:  Remove duplicated
  test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

History

#1 Updated by znz (Kazuhiro NISHIYAMA) almost 10 years ago

  • Status changed from Open to Closed

=begin
r18777
=end

Also available in: Atom PDF