mirror of
https://github.com/mempool/mempool.git
synced 2025-03-15 04:11:48 +01:00
Increase websocket from 5s to 10s
This commit is contained in:
parent
ef498b55ed
commit
8719b424e5
1 changed files with 2 additions and 2 deletions
|
@ -285,8 +285,8 @@ class AccelerationApi {
|
||||||
logger.debug('received pong from acceleration websocket server');
|
logger.debug('received pong from acceleration websocket server');
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (this.lastPing > this.lastPong && Date.now() - this.lastPing > 5000) {
|
if (this.lastPing > this.lastPong && Date.now() - this.lastPing > 10000) {
|
||||||
logger.warn('No pong received within 5 seconds, terminating connection');
|
logger.warn('No pong received within 10 seconds, terminating connection');
|
||||||
this.ws.terminate();
|
this.ws.terminate();
|
||||||
this.ws = null;
|
this.ws = null;
|
||||||
this.websocketConnected = false;
|
this.websocketConnected = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue