directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r233103 - in /directory/network: branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java
Date Wed, 17 Aug 2005 01:56:34 GMT
Author: trustin
Date: Tue Aug 16 18:56:26 2005
New Revision: 233103

URL: http://svn.apache.org/viewcvs?rev=233103&view=rev
Log:
Fix for DIRMINA-81 - race condition in SocketConnector::connect
Moved selector.wakeup() call in connect() method inside 'synchronized (this)' block.


Modified:
    directory/network/branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java
    directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java

Modified: directory/network/branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java?rev=233103&r1=233102&r2=233103&view=diff
==============================================================================
--- directory/network/branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java
(original)
+++ directory/network/branches/0.7/src/java/org/apache/mina/io/socket/SocketConnector.java
Tue Aug 16 18:56:26 2005
@@ -135,8 +135,8 @@
                 connectQueue.push( request );
             }
             startupWorker();
+            selector.wakeup();
         }
-        selector.wakeup();
 
         synchronized( request )
         {

Modified: directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java?rev=233103&r1=233102&r2=233103&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/transport/socket/nio/SocketConnector.java
Tue Aug 16 18:56:26 2005
@@ -128,8 +128,8 @@
                 connectQueue.push( request );
             }
             startupWorker();
+            selector.wakeup();
         }
-        selector.wakeup();
         
         return request;
     }



Mime
View raw message