jdk/test/com/sun/net/httpserver/bugs/B6361557.java
changeset 6115 7c523cf2bc8a
parent 5506 202f599c92aa
child 6132 bb7d59eb0f18
--- a/jdk/test/com/sun/net/httpserver/bugs/B6361557.java	Tue Jul 20 10:41:50 2010 -0400
+++ b/jdk/test/com/sun/net/httpserver/bugs/B6361557.java	Wed Jul 21 13:29:26 2010 +0100
@@ -35,12 +35,9 @@
 import java.nio.*;
 import java.nio.channels.*;
 import java.net.*;
-import java.security.*;
-import java.security.cert.*;
-import javax.net.ssl.*;
 
 /**
- * The test simply opens 10,000 separate connections
+ * The test simply opens 1,000 separate connections
  * and invokes one http request on each. The client does
  * not close any sockets until after they are closed
  * by the server. This verifies the basic ability
@@ -49,6 +46,7 @@
 public class B6361557 {
 
     public static boolean error = false;
+    static final int NUM = 1000;
 
     static class Handler implements HttpHandler {
         int invocation = 1;
@@ -75,7 +73,6 @@
         server.setExecutor (executor);
         server.start ();
 
-        final int NUM = 10000;
         ByteBuffer buf = ByteBuffer.allocate (4096);
         InetSocketAddress destaddr = new InetSocketAddress (
                 "127.0.0.1", server.getAddress().getPort()