mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ooudghir
04.58.2009 818368bd2f278130d53b3e0ac8446a10b318751f
Fix for issue 3841 Performances degradations are observed when using LDAPWriter.
1 files modified
4 ■■■ changed files
opends/src/server/org/opends/server/tools/LDAPWriter.java 4 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/tools/LDAPWriter.java
@@ -40,6 +40,7 @@
import java.net.Socket;
import java.io.IOException;
import java.io.BufferedOutputStream;
/**
 * This class defines a utility that can be used to write LDAP messages over a
@@ -71,7 +72,8 @@
  {
    this.socket = socket;
    this.debugOutputStream =
        new RecordingOutputStream(socket.getOutputStream());
        new RecordingOutputStream(
        new BufferedOutputStream(socket.getOutputStream(), 4096));
    this.asn1Writer = ASN1.getWriter(debugOutputStream);
  }