directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r900044 - /directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java
Date Sun, 17 Jan 2010 01:21:35 GMT
Author: elecharny
Date: Sun Jan 17 01:21:35 2010
New Revision: 900044

URL: http://svn.apache.org/viewvc?rev=900044&view=rev
Log:
Set the setReuseAddress to true to avoid issue when opening the port again

Modified:
    directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java

Modified: directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java?rev=900044&r1=900043&r2=900044&view=diff
==============================================================================
--- directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java
(original)
+++ directory/apacheds/trunk/protocol-shared/src/main/java/org/apache/directory/server/protocol/shared/transport/TcpTransport.java
Sun Jan 17 01:21:35 2010
@@ -137,6 +137,7 @@
     private IoAcceptor createAcceptor( String address, int port, int nbThreads, int backLog
)
     {
         NioSocketAcceptor acceptor = new NioSocketAcceptor( nbThreads );
+        acceptor.setReuseAddress( true );
         acceptor.setBacklog( backLog );
         
         InetSocketAddress socketAddress = null;



Mime
View raw message