directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r678563 - /directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Date Mon, 21 Jul 2008 20:56:07 GMT
Author: elecharny
Date: Mon Jul 21 13:56:07 2008
New Revision: 678563

URL: http://svn.apache.org/viewvc?rev=678563&view=rev
Log:
Added the ResponseDone message write when all the response have been submitted.

Modified:
    directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java

Modified: directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java?rev=678563&r1=678562&r2=678563&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
(original)
+++ directory/apacheds/branches/bigbang/protocol-newldap/src/main/java/org/apache/directory/server/newldap/handlers/NewSearchHandler.java
Mon Jul 21 13:56:07 2008
@@ -250,6 +250,11 @@
                 
                 session.getIoSession().write( response );
             }
+
+            // At the end, we have to write a last message : a responseDone
+            SearchResponseDone respDone = ( SearchResponseDone ) req.getResultResponse();
+            respDone.getLdapResult().setResultCode( ResultCodeEnum.SUCCESS );
+            session.getIoSession().write( respDone );
         }
         catch ( ReferralException e )
         {



Mime
View raw message