WaitFor and MultiWaitFor timeout (wodSSH / wodSSH.NET)

by Tony @, (2999 days ago)

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?

locked

WaitFor and MultiWaitFor timeout

by Jasmine, (2999 days ago) @ Tony

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.

locked

WaitFor and MultiWaitFor timeout

by Tony, (2992 days ago) @ Jasmine

wodSSH.Net

locked

WaitFor and MultiWaitFor timeout

by Jasmine, (2992 days ago) @ Tony

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.

locked

WaitFor and MultiWaitFor timeout

by Tony, (2992 days ago) @ Jasmine

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.

locked

WaitFor and MultiWaitFor timeout

by Jasmine, (2992 days ago) @ Tony

Tony,

it will reset timeout any time byte arrives. So, if data is coming slowly, or periodicaly, it will not timeout.

Jasmine.

locked

WaitFor and MultiWaitFor timeout

by Tony, (2992 days ago) @ Jasmine

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.

locked

WaitFor and MultiWaitFor timeout

by Jasmine, (2991 days ago) @ Tony

Tony,

I will agree that wording is perhaps a bit misleading, we will double-check the helpfile and adjust it.

Jasmine.

locked