directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r164522 - in /directory/network/trunk/src: java/org/apache/mina/io/socket/SocketAcceptor.java test/org/apache/mina/io/AbstractBindTest.java
Date Mon, 25 Apr 2005 02:25:26 GMT
Author: trustin
Date: Sun Apr 24 19:25:26 2005
New Revision: 164522

URL: http://svn.apache.org/viewcvs?rev=164522&view=rev
Log:
Fixed: AbstractBindTest.testDuplicateBind() fails

Modified:
    directory/network/trunk/src/java/org/apache/mina/io/socket/SocketAcceptor.java
    directory/network/trunk/src/test/org/apache/mina/io/AbstractBindTest.java

Modified: directory/network/trunk/src/java/org/apache/mina/io/socket/SocketAcceptor.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/io/socket/SocketAcceptor.java?rev=164522&r1=164521&r2=164522&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/io/socket/SocketAcceptor.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/io/socket/SocketAcceptor.java Sun Apr
24 19:25:26 2005
@@ -355,7 +355,6 @@
             try
             {
                 ssc = ServerSocketChannel.open();
-                ssc.socket().setReuseAddress( true );
                 ssc.configureBlocking( false );
                 ssc.socket().bind( req.address, req.backlog );
                 ssc.register( selector, SelectionKey.OP_ACCEPT, req );

Modified: directory/network/trunk/src/test/org/apache/mina/io/AbstractBindTest.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/test/org/apache/mina/io/AbstractBindTest.java?rev=164522&r1=164521&r2=164522&view=diff
==============================================================================
--- directory/network/trunk/src/test/org/apache/mina/io/AbstractBindTest.java (original)
+++ directory/network/trunk/src/test/org/apache/mina/io/AbstractBindTest.java Sun Apr 24 19:25:26
2005
@@ -92,6 +92,7 @@
         try
         {
             acceptor.bind( new InetSocketAddress( port ), new EchoProtocolHandler() );
+            acceptor.bind( new InetSocketAddress( port ), new EchoProtocolHandler() );
             Assert.fail( "IOException is not thrown" );
         }
         catch( IOException e )



Mime
View raw message