axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r507716 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
Date Wed, 14 Feb 2007 22:22:12 GMT
Author: dims
Date: Wed Feb 14 14:22:11 2007
New Revision: 507716

URL: http://svn.apache.org/viewvc?view=rev&rev=507716
Log:
let's see if this can fix the intermittent failure on ws.zones

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java?view=diff&rev=507716&r1=507715&r2=507716
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
Wed Feb 14 14:22:11 2007
@@ -69,6 +69,7 @@
         this.connmanager = connmanager;
         this.connfactory = connfactory;
         this.serversocket = new ServerSocket(port);
+        this.serversocket.setReuseAddress(true);
         this.failureHandler = failureHandler;
     }
 
@@ -79,8 +80,10 @@
         try {
             while (!Thread.interrupted()) {
                 try {
-                    if (serversocket.isClosed())
+                    if (serversocket.isClosed()){
                         serversocket = new ServerSocket(port);
+                        serversocket.setReuseAddress(true);
+                    }
                     LOG.debug("Waiting for incoming HTTP connection");
                     Socket socket = this.serversocket.accept();
                     if (LOG.isDebugEnabled()) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message