summaryrefslogtreecommitdiffstats
path: root/test/net/http
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-15 11:04:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-15 11:04:30 +0000
commit83ed1455ac29f3c5aeeec37470fcbdca33fd3130 (patch)
treeeadc277453d5571fb6b55e199ddf08bb32c0a4d1 /test/net/http
parent394efc2e0c1b4a94dec62b40dd54503cacddf343 (diff)
downloadruby-83ed1455ac29f3c5aeeec37470fcbdca33fd3130.tar.gz
ruby-83ed1455ac29f3c5aeeec37470fcbdca33fd3130.tar.xz
ruby-83ed1455ac29f3c5aeeec37470fcbdca33fd3130.zip
close socket.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-rw-r--r--test/net/http/test_https_proxy.rb8
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 66ca3ddd9..7f4e96e63 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)