From a84557ef0c4141780eed54a6e3363d3e6fafba4a Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Fri, 1 Sep 2023 13:08:22 +0100 Subject: [PATCH] update timeout from 60sec to 15sec --- meshrelay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshrelay.js b/meshrelay.js index 559bf23a..be957f2c 100644 --- a/meshrelay.js +++ b/meshrelay.js @@ -564,7 +564,7 @@ function CreateMeshRelayEx(parent, ws, req, domain, user, cookie) { } else { ws._socket.pause(); // Hold traffic until the other connection parent.parent.debug('relay', 'Relay holding: ' + obj.id + ' (' + obj.req.clientIp + ') ' + (obj.authenticated ? 'Authenticated' : '')); - parent.wsrelays[obj.id] = { peer1: obj, state: 1, timeout: setTimeout(closeBothSides, 60000) }; + parent.wsrelays[obj.id] = { peer1: obj, state: 1, timeout: setTimeout(closeBothSides, 15000) }; } // Check if a peer server has this connection @@ -1317,4 +1317,4 @@ function CreateLocalRelayEx(parent, ws, req, domain, user, cookie) { // If this is not an authenticated session, or the session does not have routing instructions, just go ahead an connect to existing session. performRelay(); return obj; -}; \ No newline at end of file +};