directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r764180 - /directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
Date Sat, 11 Apr 2009 07:17:15 GMT
Author: elecharny
Date: Sat Apr 11 07:17:15 2009
New Revision: 764180

URL: http://svn.apache.org/viewvc?rev=764180&view=rev
Log:
Added some comments

Modified:
    directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java

Modified: directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java?rev=764180&r1=764179&r2=764180&view=diff
==============================================================================
--- directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
(original)
+++ directory/shared/trunk/client-api/src/main/java/org/apache/directory/shared/ldap/client/api/LdapConnection.java
Sat Apr 11 07:17:15 2009
@@ -241,7 +241,12 @@
     
     
     /**
-     * Handle the lock mechanism on session
+     * Handle the lock mechanism on session. It's only a temporary lock,
+     * just for the necessary time to send the request. As we are using
+     * internally an asynchronous mechanism, once the data are written, 
+     * we can release the lock. Thus one can send a search request
+     * followed by an abandon request as soon as the search request
+     * has been written, even before having received the first response. 
      */
     private void lockSession() throws LdapException
     {
@@ -886,6 +891,7 @@
         // Create the future to get the result
         BindFuture bindFuture = bindAsyncInternal( bindRequest, null );
         
+        // And get the result
         try
         {
             // Read the response, waiting for it if not available immediately



Mime
View raw message