mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove stateless clients traces in TcpReplicator
This commit is contained in:
@@ -57,8 +57,9 @@ abstract class AbstractChannelReplicator implements Closeable {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(AbstractChannelReplicator.class);
|
||||
|
||||
// currently this is not safe to use as it wont work with the stateless client
|
||||
static boolean useJavaNIOSelectionKeys = Boolean.valueOf(System.getProperty("useJavaNIOSelectionKeys"));
|
||||
// this was not safe to use as it wont work with the stateless client
|
||||
static boolean useJavaNIOSelectionKeys =
|
||||
Boolean.valueOf(System.getProperty("useJavaNIOSelectionKeys"));
|
||||
|
||||
final SelectedSelectionKeySet selectedKeys = new SelectedSelectionKeySet();
|
||||
|
||||
|
||||
@@ -59,8 +59,6 @@ import static net.openhft.chronicle.hash.impl.util.BuildVersion.version;
|
||||
*/
|
||||
final class TcpReplicator extends AbstractChannelReplicator implements Closeable {
|
||||
|
||||
public static final long TIMESTAMP_FACTOR = 10000;
|
||||
private static final int STATELESS_CLIENT = -127;
|
||||
private static final byte HEARTBEAT = 0;
|
||||
private static final byte NOT_SET = 0;//(byte) HEARTBEAT.ordinal();
|
||||
private static final Logger LOG = LoggerFactory.getLogger(TcpReplicator.class.getName());
|
||||
@@ -606,12 +604,6 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
|
||||
if (attached.remoteIdentifier == Byte.MIN_VALUE) {
|
||||
final byte remoteIdentifier = reader.identifierFromBuffer();
|
||||
|
||||
if (remoteIdentifier == STATELESS_CLIENT) {
|
||||
attached.handShakingComplete = true;
|
||||
attached.hasRemoteHeartbeatInterval = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (remoteIdentifier == Byte.MIN_VALUE)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user