提交 94281b20 编写于 作者: M michaelm

7001301: com/sun/net/httpserver/bugs/6725892/Test.java failing

Reviewed-by: alanb
上级 fa7b30b0
...@@ -65,13 +65,7 @@ public class Test { ...@@ -65,13 +65,7 @@ public class Test {
public static void main (String[] args) throws Exception { public static void main (String[] args) throws Exception {
ExecutorService exec = Executors.newCachedThreadPool(); ExecutorService exec = Executors.newCachedThreadPool();
//Logger log = Logger.getLogger ("com.sun.net.httpserver");
//log.setLevel(Level.ALL);
//ConsoleHandler hg = new ConsoleHandler();
//hg.setLevel (Level.ALL);
//log.addHandler(hg);
sun.net.httpserver.HttpServerImpl x = null;
try { try {
InetSocketAddress addr = new InetSocketAddress (0); InetSocketAddress addr = new InetSocketAddress (0);
s1 = HttpServer.create (addr, 0); s1 = HttpServer.create (addr, 0);
...@@ -82,11 +76,10 @@ public class Test { ...@@ -82,11 +76,10 @@ public class Test {
port = s1.getAddress().getPort(); port = s1.getAddress().getPort();
System.out.println ("Server on port " + port); System.out.println ("Server on port " + port);
url = new URL ("http://rialto.ireland:"+port+"/foo"); url = new URL ("http://127.0.0.1:"+port+"/foo");
test1(); test1();
test2(); test2();
test3(); test3();
x = (sun.net.httpserver.HttpServerImpl)s1;
Thread.sleep (2000); Thread.sleep (2000);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册