Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

matt.baker

Thanks for looking into this Martin.
For a workaround I just attempt to open a connection to the host using a raw TCP connection and then just check for the SSH ID string within a certain time.
martin

OK, indeed, the timeout does not seem to work correctly. I'll look into it.
matt.baker

I'm using the SCP protocol.

Log files attached. Timeout set to 2000 ms in this instance. Values less than 1 second show as 0 in the log.
martin

What protocol? Can you post a log file?
matt.baker

Thanks. I tried this as well, using the SessionOptions.TimeoutInMilliseconds and SessionOptions.Timeout, but it's not having any effect on the open timeout.
matt.baker

Session.Open() timeout variable

Is there a user configurable variable for the timeout of the Session.Open?
I've tried setting Session.Timeout to 1000 ms, but it seems to be taking ~22 seconds to time out on an unreachable host regardless.

Thanks