changeset 89:ff5dc052d805

OPENJDK6-43: Backport JAX_WS-945; Socket backlog may be limiting lwhs performance Summary: Sync ServerMgr.java file with version in OpenJDK 7 Reviewed-by: andrew Contributed-by: KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
author andrew
date Wed, 24 Dec 2014 18:38:07 +0000
parents 48972b9b6536
children 1555e63ddbfc
files drop_included/jaxws_src/src/com/sun/xml/internal/ws/transport/http/server/ServerMgr.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/drop_included/jaxws_src/src/com/sun/xml/internal/ws/transport/http/server/ServerMgr.java	Wed Oct 08 19:12:52 2014 +0100
+++ b/drop_included/jaxws_src/src/com/sun/xml/internal/ws/transport/http/server/ServerMgr.java	Wed Dec 24 18:38:07 2014 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,6 +22,7 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
+
 package com.sun.xml.internal.ws.transport.http.server;
 
 import com.sun.net.httpserver.HttpContext;
@@ -79,7 +80,8 @@
                 state = servers.get(inetAddress);
                 if (state == null) {
                     logger.fine("Creating new HTTP Server at "+inetAddress);
-                    server = HttpServer.create(inetAddress, 5);
+                    // Creates server with default socket backlog
+                    server = HttpServer.create(inetAddress, 0);
                     server.setExecutor(Executors.newCachedThreadPool());
                     String path = url.toURI().getPath();
                     logger.fine("Creating HTTP Context at = "+path);