Project

General

Profile

Actions

Bug #464

closed

`Errno::ENOTCONN: Socket is not connected' in test/openssl/test_ssl.rb

Added by znz (Kazuhiro NISHIYAMA) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
Backport:
[ruby-dev:35897]

Description

=begin
test/openssl/test_ssl.rbでも同様にErrno::ENOTCONNになります。

  1. Error:
    test_client_auth(OpenSSL::TestSSL):
    Errno::ENOTCONN: Socket is not connected
    /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:132:in shutdown' /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:132:in start_server'
    /Users/chkbuild/chkbuild/tmp/build/ruby-trunk/20080821T033314/ruby/test/openssl/test_ssl.rb:231:in `test_client_auth'

以下パッチです。

Index: test/openssl/test_ssl.rb

--- test/openssl/test_ssl.rb (revision 18748)
+++ test/openssl/test_ssl.rb (working copy)
@@ -129,7 +129,14 @@
block.call(server, port.to_i)
ensure
begin

  •    tcps.shutdown if (tcps)
    
  •    begin
    
  •      tcps.shutdown
    
  •    rescue Errno::ENOTCONN
    
  •      # when `Errno::ENOTCONN: Socket is not connected' on some platforms,
    
  •      # call #close instead of #shutdown.
    
  •      tcps.close
    
  •      tcps = nil
    
  •    end if (tcps)
       if (server)
         server.join(5)
         if server.alive?
    

=end

Actions #1

Updated by znz (Kazuhiro NISHIYAMA) about 16 years ago

  • Status changed from Open to Closed

=begin
r18777
=end

Actions

Also available in: Atom PDF

Like0
Like0