WaitFor and MultiWaitFor timeout (wodSSH / wodSSH.NET)
Some questions about the (Multi)WaitFor timeout.
(Multi)WaitFor with no timeout: does it wait forever or is there some default timeout in play?
(Multi)WaitFor with timeout = 0: what is the behavior?
(Multi)WaitFor with timeout = -1: what is the behavior?
WaitFor and MultiWaitFor timeout
Hi Tony.
Are you referring to wodSSH ActiveX or wodSSH.NET? Behavior could be slightly different, so I would have to double-check it.
Jasmine.
WaitFor and MultiWaitFor timeout
wodSSH.Net
WaitFor and MultiWaitFor timeout
Hi Tony,
if Timeout argument isn't specified, then value from Timeout property is used.
When 0 is specified, then WaitFor waits forever.
For -1.. Well.. Honestly I don't know, it's something we didn't think it will be set to. Values should be 0 and upwards.
Jasmine.
WaitFor and MultiWaitFor timeout
Okay, that makes sense. I'm trying to determine if the Timeout argument indicates the length of inactivity before giving up on the WaitFor or if it indicates the total time to wait for any of the expected strings? Data may come in bursts, of course. I am investigating a case where the SSH client seems to be waiting longer than the specified timeout but I want to make sure I am using the component correctly.
WaitFor and MultiWaitFor timeout
Tony,
it will reset timeout any time byte arrives. So, if data is coming slowly, or periodicaly, it will not timeout.
Jasmine.
WaitFor and MultiWaitFor timeout
I see...then maybe I am on to something. The description of the Timeout param says "Seconds to wait for successful completion of the command." That sounds to me like overall timeout, i.e. time until one of the strings is received - not inactivity time.
WaitFor and MultiWaitFor timeout
Tony,
I will agree that wording is perhaps a bit misleading, we will double-check the helpfile and adjust it.
Jasmine.