Browse Source

Increase ws keepalive interval to 30 seconds

Paul Szymanski 4 years ago
parent
commit
4b1417224b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/index.js

+ 1 - 1
server/index.js

@@ -117,7 +117,7 @@ class SnapdropServer {
 
 
     _keepAlive(peer) {
     _keepAlive(peer) {
         this._cancelKeepAlive(peer);
         this._cancelKeepAlive(peer);
-        var timeout = 10000;
+        var timeout = 30000;
         if (!peer.lastBeat) {
         if (!peer.lastBeat) {
             peer.lastBeat = Date.now();
             peer.lastBeat = Date.now();
         }
         }