directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r280692 - /directory/shared/ldap/trunk/apache2-provider/src/java/main/org/apache/asn1new/ldap/TwixEncoder.java
Date Tue, 13 Sep 2005 22:18:57 GMT
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 );
     }
 
     /**



Mime
View raw message