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

gbellato
28.38.2009 567f2046f3a15ccd5b9f5e74ec43c103471219a7
opendj-sdk/opends/src/server/org/opends/server/replication/protocol/TLSSocketSession.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2006-2008 Sun Microsystems, Inc.
 *      Copyright 2006-2009 Sun Microsystems, Inc.
 */
package org.opends.server.replication.protocol;
@@ -69,6 +69,8 @@
   */
  private long lastReceiveTime = 0;
  private boolean closeInitiated = false;
  /**
   * Creates a new TLSSocketSession.
@@ -96,6 +98,7 @@
   */
  public void close() throws IOException
  {
    closeInitiated = true;
    if (debugEnabled())
    {
      TRACER.debugInfo("Closing SocketSession." +
@@ -243,4 +246,12 @@
  {
    plainSocket.setSoTimeout(timeout);
  }
  /**
   * {@inheritDoc}
   */
  public boolean closeInitiated()
  {
    return closeInitiated;
  }
}