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

dugan
18.19.2009 b45e7fb00a64d2fd8897a485def4296d03c39b55
opends/src/server/org/opends/server/extensions/TLSByteChannel.java
@@ -205,6 +205,8 @@
        SSLEngineResult.HandshakeStatus hsStatus;
        if(!reading)
          appNetData.clear();
        else
          reading = false;
        if(!socketChannel.isOpen())
            return -1;
        if(sslEngine.isInboundDone())
@@ -369,8 +371,7 @@
                    throw new ClosedChannelException();
                else if (bytesWritten == 0) {
                    int bytesSent = netData.remaining();
                    if(!StaticUtils.writeWithTimeout(
                            connection, socketChannel, netData))
                    if(!StaticUtils.writeWithTimeout(connection, netData))
                        throw new ClosedChannelException();
                    totBytesSent += bytesSent;
                } else