From df345d27f43e7dd3b41f5b8471448db4efbeb849 Mon Sep 17 00:00:00 2001 From: Xue-Lei Andrew Fan Date: Wed, 4 Feb 2009 19:10:09 +0800 Subject: [PATCH] 6782783: regtest HttpsURLConnection/B6216082.java throws ClosedByInterruptException Make the test robust Reviewed-by: weijun --- .../sun/net/www/protocol/https/HttpsURLConnection/B6216082.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java b/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java index e5f28779cca..1a7ac9a4f5c 100644 --- a/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java +++ b/jdk/test/sun/security/ssl/sun/net/www/protocol/https/HttpsURLConnection/B6216082.java @@ -136,6 +136,7 @@ public class B6216082 { server.getLocalPort(), "/"); HttpURLConnection uc = (HttpURLConnection)url.openConnection(); System.out.println(uc.getResponseCode()); + uc.disconnect(); } catch (IOException e) { e.printStackTrace(); } finally {