tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1208114 - /tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
Date Tue, 29 Nov 2011 22:32:33 GMT
Author: markt
Date: Tue Nov 29 22:32:32 2011
New Revision: 1208114

URL: http://svn.apache.org/viewvc?rev=1208114&view=rev
Log:
Fix unlocking of the acceptor thread when a random port is used

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java?rev=1208114&r1=1208113&r2=1208114&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java Tue Nov 29 22:32:32
2011
@@ -475,9 +475,9 @@ public abstract class AbstractEndpoint {
         try {
             // Need to create a connection to unlock the accept();
             if (address == null) {
-                saddr = new InetSocketAddress("localhost", getPort());
+                saddr = new InetSocketAddress("localhost", getLocalPort());
             } else {
-                saddr = new InetSocketAddress(address,getPort());
+                saddr = new InetSocketAddress(address, getLocalPort());
             }
             s = new java.net.Socket();
             int stmo = 2 * 1000;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message