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)
This commit is contained in:
Chris Thornton 2022-04-04 14:58:33 -07:00
parent 4a516a9f8c
commit 4787df172b

View File

@ -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);