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

abobrov
05.38.2009 d10eb0e1e648648e5954c9fc3c67ba21dd2c3a9f
opends/src/server/org/opends/server/extensions/SASLByteChannel.java
@@ -199,7 +199,7 @@
    /**
     * {@inheritDoc}
     */
    public int read(ByteBuffer clearDst) throws IOException {
    public synchronized int read(ByteBuffer clearDst) throws IOException {
      int bytesToRead = lengthSize;
      if(reading)
        bytesToRead = neededBytes;
@@ -277,7 +277,7 @@
    /**
     * {@inheritDoc}
     */
    public int write(ByteBuffer clearSrc) throws IOException {
    public synchronized int write(ByteBuffer clearSrc) throws IOException {
        int sendBufSize = getAppBufSize();
        int srcLen = clearSrc.remaining();
        ByteBuffer sendBuffer = ByteBuffer.allocate(sendBufSize);
@@ -323,7 +323,7 @@
    /**
     * {@inheritDoc}
     */
    public void close() throws IOException {
    public synchronized void close() throws IOException {
        saslContext.dispose();
        saslContext=null;
    }