| | |
| | | import org.opends.server.replication.protocol.ReplicationMsg; |
| | | import org.opends.server.replication.protocol.ServerStartMsg; |
| | | import org.opends.server.replication.protocol.Session; |
| | | import org.opends.server.replication.protocol.Session.EarlyPeerDisconnectException; |
| | | import org.opends.server.replication.server.changelog.api.ChangeNumberIndexDB; |
| | | import org.opends.server.replication.server.changelog.api.ChangeNumberIndexRecord; |
| | | import org.opends.server.replication.server.changelog.api.ChangelogDB; |
| | |
| | | continue; |
| | | } |
| | | |
| | | ReplicationMsg msg = session.receive(); |
| | | final ReplicationMsg msg; |
| | | try |
| | | { |
| | | msg = session.receiveFirstMessage(); |
| | | } |
| | | catch (EarlyPeerDisconnectException e) |
| | | { |
| | | // A discovery probe may be cancelled after TLS but before sending ServerStartMsg. |
| | | if (logger.isDebugEnabled()) |
| | | { |
| | | logger.debug(LocalizableMessage.raw("Replication connection from %s closed before the first message: %s", |
| | | session.getReadableRemoteAddress(), e.getMessage())); |
| | | } |
| | | close(session); |
| | | continue; |
| | | } |
| | | |
| | | final int queueSize = this.config.getQueueSize(); |
| | | final int rcvWindow = this.config.getWindowSize(); |