diff options
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/http/test_https_proxy.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb index 66ca3ddd9b..7f4e96e63c 100644 --- a/test/net/http/test_https_proxy.rb +++ b/test/net/http/test_https_proxy.rb @@ -25,9 +25,15 @@ class HTTPSProxyTest < Test::Unit::TestCase "\r\n", proxy_request, "[ruby-dev:25673]") + sock.close } ensure - t.join if t + if t + begin + t.join + rescue EOFError + end + end end end if defined?(OpenSSL) |