Skip to content

Commit

Permalink
modify check waitingForPingResponse with volatile (apache#12615)
Browse files Browse the repository at this point in the history
  • Loading branch information
baomingyu authored Nov 5, 2021
1 parent 08962f5 commit 62e2547
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public abstract class PulsarHandler extends PulsarDecoder {
protected SocketAddress remoteAddress;
private int remoteEndpointProtocolVersion = ProtocolVersion.v0.getValue();
private final long keepAliveIntervalSeconds;
private boolean waitingForPingResponse = false;
private volatile boolean waitingForPingResponse = false;
private ScheduledFuture<?> keepAliveTask;

public int getRemoteEndpointProtocolVersion() {
Expand Down

0 comments on commit 62e2547

Please sign in to comment.