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

abobrov
05.38.2009 d10eb0e1e648648e5954c9fc3c67ba21dd2c3a9f
opends/src/server/org/opends/server/extensions/TLSByteChannel.java
@@ -205,7 +205,7 @@
    /**
     * {@inheritDoc}
     */
    public int read(ByteBuffer clearBuffer) throws IOException {
    public synchronized int read(ByteBuffer clearBuffer) throws IOException {
        SSLEngineResult.HandshakeStatus hsStatus;
        if(!reading)
          appNetData.clear();
@@ -252,7 +252,7 @@
    /**
     * {@inheritDoc}
     */
    public void close() throws IOException {
    public synchronized void close() throws IOException {
        sslEngine.closeInbound();
        sslEngine.closeOutbound();
        SSLEngineResult.HandshakeStatus hsStatus =
@@ -328,7 +328,7 @@
    /**
     * {@inheritDoc}
     */
    public int write(ByteBuffer clearData) throws IOException {
    public synchronized int write(ByteBuffer clearData) throws IOException {
        if(!socketChannel.isOpen() || sslEngine.isOutboundDone()) {
            throw new ClosedChannelException();
        }