stabilize wss connection by increasing timeout to 5s
This commit is contained in:
parent
5c5fb2db0d
commit
9d33739f03
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -402,7 +402,7 @@ class PairdropServer {
|
||||||
|
|
||||||
_keepAlive(peer) {
|
_keepAlive(peer) {
|
||||||
this._cancelKeepAlive(peer);
|
this._cancelKeepAlive(peer);
|
||||||
var timeout = 500;
|
let timeout = 2500;
|
||||||
if (!peer.lastBeat) {
|
if (!peer.lastBeat) {
|
||||||
peer.lastBeat = Date.now();
|
peer.lastBeat = Date.now();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue