--- a/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveTimerThread.java Tue Jul 20 10:41:50 2010 -0400
+++ b/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveTimerThread.java Wed Jul 21 13:29:26 2010 +0100
@@ -91,9 +91,10 @@
out.flush();
s.close();
- server.close();
} catch (Exception e) {
e.printStackTrace();
+ } finally {
+ try { server.close(); } catch (IOException unused) {}
}
}
}
@@ -118,6 +119,8 @@
if (grp.activeCount() > 0) {
throw new RuntimeException("Keep-alive thread started in wrong thread group");
}
+
+ grp.destroy();
}
}