axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject svn commit: r683638 - /webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
Date Thu, 07 Aug 2008 16:02:28 GMT
Author: gdaniels
Date: Thu Aug  7 09:02:27 2008
New Revision: 683638

URL: http://svn.apache.org/viewvc?rev=683638&view=rev
Log:
Move info message up so that we can see what port we're listening to before any errors in
case there are problems.

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

Modified: webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java?rev=683638&r1=683637&r2=683638&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
(original)
+++ webservices/axis2/trunk/java/modules/transports/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
Thu Aug  7 09:02:27 2008
@@ -69,11 +69,11 @@
             while (!Thread.interrupted()) {
                 try {
                     if (serversocket == null || serversocket.isClosed()) {
-                        serversocket = new ServerSocket(port);
-                        serversocket.setReuseAddress(true);
                         if (LOG.isInfoEnabled()) {
                             LOG.info("Listening on port " + this.serversocket.getLocalPort());
                         }
+                        serversocket = new ServerSocket(port);
+                        serversocket.setReuseAddress(true);
                     }
                     LOG.debug("Waiting for incoming HTTP connection");
                     Socket socket = this.serversocket.accept();



Mime
View raw message