diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-27 14:33:05 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-27 14:33:05 +0000 |
commit | 787cde7f9ab12edafe7559f501a8e21d89e72d72 (patch) | |
tree | d170cdc2f4c783f87fbe1c6b2b96e334669d9043 /test | |
parent | 99c3a01dc7053dcc91b74cbab0c7505310ff302f (diff) | |
download | ruby-787cde7f9ab12edafe7559f501a8e21d89e72d72.tar.gz |
* test/openssl/test_ssl.rb (server_loop): rescue Errno::EINVAL and
Errno::ECONNABORTED.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/openssl/test_ssl.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 876ca4c685..eadff733a6 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -86,7 +86,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase server_proc.call(ctx, ssl) end end - rescue Errno::EBADF, IOError + rescue Errno::EBADF, IOError, Errno::EINVAL, Errno::ECONNABORTED end def start_server(port0, verify_mode, start_immediately, args = {}, &block) @@ -128,8 +128,8 @@ class OpenSSL::TestSSL < Test::Unit::TestCase block.call(server, port.to_i) ensure - tcps.shutdown if (tcps) begin + tcps.shutdown if (tcps) if (server) server.join(5) if server.alive? @@ -138,7 +138,6 @@ class OpenSSL::TestSSL < Test::Unit::TestCase flunk("TCPServer was closed and SSLServer is still alive") unless $! end end - rescue Errno::EINVAL, Errno::EBADF ensure tcps.close if (tcps) end |