update timeout from 60sec to 15sec

Simon Smith committed Sep 1, 2023 at 13:08 UTC a84557ef0c4141780eed54a6e3363d3e6fafba4a
1 file changed +2 -2
meshrelay.js
+2 -2
@@ -564,7 +564,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) {
564 } else {
565 ws._socket.pause(); // Hold traffic until the other connection
566 parent.parent.debug('relay', 'Relay holding: ' + obj.id + ' (' + obj.req.clientIp + ') ' + (obj.authenticated ? 'Authenticated' : ''));
567 - parent.wsrelays[obj.id] = { peer1: obj, state: 1, timeout: setTimeout(closeBothSides, 60000) };
567 + parent.wsrelays[obj.id] = { peer1: obj, state: 1, timeout: setTimeout(closeBothSides, 15000) };
568 }
569
570 // Check if a peer server has this connection
@@ -1317,4 +1317,4 @@ function CreateLocalRelayEx(parent, ws, req, domain, user, cookie) {
1317 // If this is not an authenticated session, or the session does not have routing instructions, just go ahead an connect to existing session.
1318 performRelay();
1319 return obj;
1320 -};
\ No newline at end of file
1320 +};