WaitFor and MultiWaitFor timeout - WeOnlyDo Discussion board

WaitFor and MultiWaitFor timeout (wodSSH / wodSSH.NET)

by Tony, Tuesday, February 14, 2017, 17:18 (72 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?

WaitFor and MultiWaitFor timeout

by Jasmine, Tuesday, February 14, 2017, 17:30 (72 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.

WaitFor and MultiWaitFor timeout

by Tony, Tuesday, February 21, 2017, 20:13 (65 days ago) @ Jasmine

wodSSH.Net

WaitFor and MultiWaitFor timeout

by Jasmine, Tuesday, February 21, 2017, 20:14 (65 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.

WaitFor and MultiWaitFor timeout

by Tony, Tuesday, February 21, 2017, 21:19 (65 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.

WaitFor and MultiWaitFor timeout

by Jasmine, Tuesday, February 21, 2017, 22:18 (65 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.

WaitFor and MultiWaitFor timeout

by Tony, Tuesday, February 21, 2017, 22:48 (65 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.

WaitFor and MultiWaitFor timeout

by Jasmine, Wednesday, February 22, 2017, 11:12 (64 days ago) @ Tony

Tony,

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

Jasmine.