You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2005/09/14 00:18:57 UTC

svn commit: r280692 - /directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java

Author: elecharny
Date: Tue Sep 13 15:18:53 2005
New Revision: 280692

URL: http://svn.apache.org/viewcvs?rev=280692&view=rev
Log:
Side effect of testing ApacheDS in Debug mode : the encoded PDU was flipped twice, resulting in waiting a response for a while...
The flip in the debug part was not necessary at all, so it has been deleted.

Modified:
    directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java

Modified: directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java?rev=280692&r1=280691&r2=280692&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java (original)
+++ directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java Tue Sep 13 15:18:53 2005
@@ -115,9 +115,9 @@
         	if (log.isDebugEnabled())
         	{
         		log.debug( "Encoded PDU : " + StringUtils.dumpBytes( pdu.array() ) );
-        		pdu.flip();
         	}
 
+            pdu.flip();
         	return pdu;
         }
         catch ( EncoderException e )
@@ -183,7 +183,7 @@
     public void encode( Object obj ) throws EncoderException
     {
     	ByteBuffer encoded = encodeBlocking( obj );
-    	encodeCallback.encodeOccurred( null, encoded.flip() );
+    	encodeCallback.encodeOccurred( null, encoded );
     }
 
     /**