From f35be2f355e3937a76c1c283157be3fd57ffa4dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Fri, 5 Jul 2019 23:42:51 +0200 Subject: [PATCH] Set max pending rcon requests to 1 --- client.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client.js b/client.js index aded5348..5c6222c7 100644 --- a/client.js +++ b/client.js @@ -364,12 +364,14 @@ write-data=${ path.resolve(config.instanceDirectory, instance) }\r\n data = data.toString("utf8").replace(/(\r\n\t|\n|\r\t)/gm,""); console.log(data); if(data.includes("Starting RCON interface")){ - let client = new Rcon(); + let client = new Rcon({ + packetResponseTimeout: 2000, + maxPending: 1 + }); client.connect({ host: 'localhost', port: Number(process.env.RCONPORT) || instconf.clientPort, - password: instconf.clientPassword, - timeout: 5000 + password: instconf.clientPassword }); client.onDidAuthenticate(() => { console.log('Clusterio | RCON Authenticated!');