From 4787df172b0eec113123708b09473add8ed62d7d Mon Sep 17 00:00:00 2001 From: Chris Thornton Date: Mon, 4 Apr 2022 14:58:33 -0700 Subject: [PATCH] Propagate rx_timeout into the ider object (The session may get closed before the timeout expires if set to longer than the default of 30 seconds) --- agents/meshcmd.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index ed8fea31..4158679c 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -2302,7 +2302,10 @@ function performIder() { ider.m.cdrom = scdrom; ider.m.iderStart = 1; // OnReboot = 0, Graceful = 1, Now = 2 ider.m.debug = (settings.debuglevel > 0); - if (settings.timeout > 0) { ider.m.sectorStats = iderSectorStats; } + if (settings.timeout > 0) { + ider.m.sectorStats = iderSectorStats; + ider.m.rx_timeout = settings.timeout; + } //ider.digestRealmMatch = wsstack.comm.digestRealm; //ider.tlsv1only = amtstack.wsman.comm.tlsv1only; ider.Start(settings.hostname, (settings.tls == true) ? 16995 : 16994, settings.username ? 'admin' : settings.username, settings.password, settings.tls);