jenkins-bot has submitted this change and it was merged. Change subject: Add setInterval to ssh close for startRelay() ......................................................................
Add setInterval to ssh close for startRelay() This prevents it from retrying ssh so quickly. lets try this function every 10 seconds instead of instantly which could cause other problems. Change-Id: Ie5f2904137ff3b59f851999334b79391177fd661 --- M src/relay.js 1 file changed, 2 insertions(+), 1 deletion(-) Approvals: Paladox: Looks good to me, approved jenkins-bot: Verified diff --git a/src/relay.js b/src/relay.js index 0cdb053..3d135ef 100644 --- a/src/relay.js +++ b/src/relay.js @@ -52,7 +52,8 @@ console.log('Client error: ' + err); }).on('close', function() { console.log('Client disconnected'); - startRelay(); + setInterval(startRelay, 10000); + console.log('Client re-connected'); }).connect({ host: host, port: port, -- To view, visit https://gerrit.wikimedia.org/r/319910 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie5f2904137ff3b59f851999334b79391177fd661 Gerrit-PatchSet: 2 Gerrit-Project: labs/tools/grrrit Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits