< prev index next >

test/jdk/sun/net/www/httptest/TestHttpServer.java

Print this page

        

*** 143,152 **** --- 143,153 ---- public TestHttpServer (HttpCallback cb, int threads, int cperthread, InetAddress address, int port) throws IOException { schan = ServerSocketChannel.open (); InetSocketAddress addr = new InetSocketAddress (address, port); + schan.socket().setReuseAddress(true); schan.socket().bind (addr); this.threads = threads; this.cb = cb; this.cperthread = cperthread; servers = new Server [threads];
< prev index next >