axis-java-dev mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=508077
Log:
Let's try setting a really small timeout for fixing ws.zones problem

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=508077&r1=508076&r2=508077
==============================================================================
--- 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
Thu Feb 15 11:02:14 2007
@@ -32,6 +32,7 @@
 import java.io.IOException;
 import java.net.ServerSocket;
 import java.net.Socket;
+import java.net.SocketTimeoutException;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -78,6 +79,7 @@
                     if (serversocket == null || serversocket.isClosed()){
                         serversocket = new ServerSocket(port);
                         serversocket.setReuseAddress(true);
+                        serversocket.setSoTimeout(1);
                         if (LOG.isInfoEnabled()) {
                             LOG.info("Listening on port " + this.serversocket.getLocalPort());
                         }
@@ -90,6 +92,9 @@
                     }
                     HttpServerConnection conn = this.connfactory.newConnection(socket);
                     this.connmanager.process(conn);
+                } catch (SocketTimeoutException se) {
+                    if (Thread.interrupted())
+                        break;
                 } catch (Throwable ex) {
                     if (Thread.interrupted())
                         break;



---------------------------------------------------------------------
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