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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to