opends/src/server/org/opends/server/controls/ExternalChangelogRequestControl.java
@@ -29,12 +29,10 @@ import static org.opends.server.protocols.asn1.ASN1Constants.*; import static org.opends.server.util.ServerConstants.*; import static org.opends.server.util.StaticUtils.getExceptionMessage; import static org.opends.server.loggers.debug.DebugLogger.getTracer; import java.io.IOException; import org.opends.messages.Message; import org.opends.server.loggers.debug.DebugTracer; import org.opends.server.protocols.asn1.ASN1; import org.opends.server.protocols.asn1.ASN1Reader; import org.opends.server.protocols.asn1.ASN1Writer; @@ -48,19 +46,15 @@ /** * This class implements the persistent search control defined in * draft-ietf-ldapext-psearch. It makes it possible for clients to be notified * of changes to information in the Directory Server as they occur. * This class implements the control used to browse the external changelog. */ public class ExternalChangelogRequestControl extends Control { private static final DebugTracer TRACER = getTracer(); private MultiDomainServerState cookie; /** * ControlDecoder implentation to decode this control from a ByteString. * ControlDecoder implementation to decode this control from a ByteString. */ private final static class Decoder implements ControlDecoder<ExternalChangelogRequestControl> opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -248,8 +248,6 @@ void runListen() { Socket newSocket; // wait for the connect thread to find other replication // servers in the topology before starting to accept connections // from the ldap servers. @@ -272,16 +270,30 @@ // Read incoming messages and create LDAP or ReplicationServer listener // and Publisher. ProtocolSession session; Socket newSocket = null; try { newSocket = listenSocket.accept(); newSocket.setTcpNoDelay(true); newSocket.setKeepAlive(true); ProtocolSession session = replSessionSecurity.createServerSession(newSocket, ReplSessionSecurity.HANDSHAKE_TIMEOUT); if (session == null) // Error, go back to accept try { newSocket = listenSocket.accept(); newSocket.setTcpNoDelay(true); newSocket.setKeepAlive(true); session = replSessionSecurity.createServerSession(newSocket, ReplSessionSecurity.HANDSHAKE_TIMEOUT); if (session == null) // Error, go back to accept continue; } catch (Exception e) { // If problems happen during the SSL handshake, it is necessary // to close the socket to free the associated resources. if (newSocket != null) newSocket.close(); continue; } ReplicationMsg msg = session.receive();