forked from Qortal/qortal
Reduce peer response timeout from 5s to 2s
5s is way too long, and even 2s might still be considered excessive. However, reducing the timeout might also reduce the number of network engine "spawn failures" due to too many threads tied up waiting for ping responses from overloaded peers. Does not affect peer handshaking: that has a separate timeout.
This commit is contained in:
parent
22f9755f4f
commit
38394de661
@ -43,7 +43,7 @@ public class Peer {
|
||||
private static final int CONNECT_TIMEOUT = 1000; // ms
|
||||
|
||||
/** Maximum time to wait for a message reply to arrive from peer. (ms) */
|
||||
private static final int RESPONSE_TIMEOUT = 5000; // ms
|
||||
private static final int RESPONSE_TIMEOUT = 2000; // ms
|
||||
|
||||
/**
|
||||
* Interval between PING messages to a peer. (ms)
|
||||
|
Loading…
Reference in New Issue
Block a user