Skip to content

Commit

Permalink
align PeerReputation timout threshold with peer max outstanding reque…
Browse files Browse the repository at this point in the history
…sts (hyperledger#6877)

Signed-off-by: garyschulte <garyschulte@gmail.com>
  • Loading branch information
garyschulte authored and matthew1001 committed Jun 7, 2024
1 parent 5c64721 commit ea0d58e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class PeerReputation implements Comparable<PeerReputation> {
static final int DEFAULT_MAX_SCORE = 150;
static final int DEFAULT_INITIAL_SCORE = 100;
private static final Logger LOG = LoggerFactory.getLogger(PeerReputation.class);
public static final int TIMEOUT_THRESHOLD = 3;
public static final int TIMEOUT_THRESHOLD = 5;
public static final int USELESS_RESPONSE_THRESHOLD = 5;

private final ConcurrentMap<Integer, AtomicInteger> timeoutCountByRequestType =
Expand Down

0 comments on commit ea0d58e

Please sign in to comment.