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

Matthew Swift
31.36.2011 04689d9435472afbb67350d30adbb292945c2187
opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
@@ -405,6 +405,11 @@
      setSessionError(e);
      throw e;
    }
    catch (final RuntimeException e)
    {
      setSessionError(e);
      throw e;
    }
  }
@@ -438,14 +443,18 @@
  public void stopEncryption()
  {
    // The secure socket has been configured not to auto close the underlying
    // plain socket.
    try
    // plain socket. We should close it here and properly tear down the SSL
    // session, but this is not compatible with the existing protocol.
    if (false)
    {
      secureSocket.close();
    }
    catch (IOException ignored)
    {
      // Ignore.
      try
      {
        secureSocket.close();
      }
      catch (IOException ignored)
      {
        // Ignore.
      }
    }
    input = plainInput;