You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2006/08/01 22:58:46 UTC

svn commit: r427729 - /james/server/trunk/src/test/org/apache/james/test/util/Util.java

Author: bago
Date: Tue Aug  1 13:58:46 2006
New Revision: 427729

URL: http://svn.apache.org/viewvc?rev=427729&view=rev
Log:
Make sure that the test socket is reusable. I have not seen problems without this but maybe this is needed with different implementations.

Modified:
    james/server/trunk/src/test/org/apache/james/test/util/Util.java

Modified: james/server/trunk/src/test/org/apache/james/test/util/Util.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/test/util/Util.java?rev=427729&r1=427728&r2=427729&view=diff
==============================================================================
--- james/server/trunk/src/test/org/apache/james/test/util/Util.java (original)
+++ james/server/trunk/src/test/org/apache/james/test/util/Util.java Tue Aug  1 13:58:46 2006
@@ -83,6 +83,7 @@
                 if (PORT_LAST_USED > PORT_RANGE_END) PORT_LAST_USED = PORT_RANGE_START;
                 ServerSocket ss;
                 ss = new ServerSocket(PORT_LAST_USED);
+                ss.setReuseAddress(true);
                 ss.close();
                 break;
             } catch (IOException e) {



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