Session.Open() timeout variable

Advertisement

matt.baker
Joined:
Posts:
6

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

Reply with quote

Advertisement

matt.baker
Joined:
Posts:
6

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,561
Location:
Prague, Czechia

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

Reply with quote

matt.baker
Joined:
Posts:
6

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.

Reply with quote

Advertisement

You can post new topics in this forum