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 and eolivelli committed Nov 29, 2021
1 parent 58765c4 commit cfc4871
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 cfc4871

Please sign in to comment.