Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Jan 17, 2019
1 parent 9c467ac commit 969cf67
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ private final static class VolatileFields {
private Bootstrap boot;
private EventLoopGroup rpcGroup;

// Session will be actively closed if there're successive timeout errors across
// `sessionResetTimeWindowMs`, after which we suspect that the server is unavailable.

// Timestamp of the first timed out rpc.
private AtomicLong firstRecentTimedOutMs;
private static final long sessionResetTimeWindowMs = 10 * 1000; // 10s

Expand Down

0 comments on commit 969cf67

Please sign in to comment.