directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r329153 - /directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
Date Fri, 28 Oct 2005 08:26:43 GMT
Author: trustin
Date: Fri Oct 28 01:26:39 2005
New Revision: 329153

URL: http://svn.apache.org/viewcvs?rev=329153&view=rev
Log:
Fixed failing ConnectorTest due to BindException.

Modified:
    directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java

Modified: directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java?rev=329153&r1=329152&r2=329153&view=diff
==============================================================================
--- directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
(original)
+++ directory/network/trunk/src/test/org/apache/mina/examples/echoserver/ConnectorTest.java
Fri Oct 28 01:26:39 2005
@@ -120,14 +120,13 @@
             for( int i = 0; i < 65536; i ++ )
             {
                 clientPort = AvailablePortFinder.getNextAvailable( clientPort + 1 );
-                ConnectFuture future = connector.connect(
-                        new InetSocketAddress( InetAddress.getLocalHost(), port ),
-                        new InetSocketAddress( clientPort ),
-                        handler );
-                future.join();
-                
                 try
                 {
+                    ConnectFuture future = connector.connect(
+                            new InetSocketAddress( InetAddress.getLocalHost(), port ),
+                            new InetSocketAddress( clientPort ),
+                            handler );
+                    future.join();
                     session = future.getSession();
                     break;
                 }



Mime
View raw message