3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 23:32:16 +00:00

Change default ping time to 2sec

This commit is contained in:
Mike Hearn 2013-03-04 18:44:36 +01:00
parent 0608b3a383
commit d626b19a55

View File

@ -101,7 +101,7 @@ public class PeerGroup extends AbstractIdleService {
// and network latency. We ping peers every pingIntervalMsec milliseconds.
private Timer pingTimer;
/** How many milliseconds to wait after receiving a pong before sending another ping. */
public static final long DEFAULT_PING_INTERVAL_MSEC = 1000;
public static final long DEFAULT_PING_INTERVAL_MSEC = 2000;
private long pingIntervalMsec = DEFAULT_PING_INTERVAL_MSEC;
private final NetworkParameters params;