align PeerReputation timout threshold with peer max outstanding requests (#6877)

Signed-off-by: garyschulte <garyschulte@gmail.com>
release-24.4.0 24.4.0-RC2
garyschulte 8 months ago committed by GitHub
parent 336ebe93b7
commit 9ae52a97cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java

@ -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 =

Loading…
Cancel
Save