Archived Forum Post

Index of archived forum posts

Question:

how long to wait for ChannelReadAndPoll in a do/while looop

Mar 04 '14 at 05:53

I've got 5000ms as the parameter for ChannelReadAndPoll, which is in a do/while loop.

I get a response from GetReceivedText right away, then I get -2 (timeout) from subsequent calls to ChannelReadAndPoll. Is there a point that I should stop trying to get a value from the SSH host?