ssh client does not timeout if the network fails after ssh_connect but before ssh_exchange_identification, even with Alive options set
Dan Yefimov
dan at ns15.lightwave.net.ru
Fri Jul 27 08:46:35 EST 2007
On Thu, 26 Jul 2007, Jiaying Zhang wrote:
> I was thinking to record the start time and subtract the elapsed time
> when an interrupt happens.
>
How were you going to determine the elapsed time? Only Linux, AFAIK, returns
the remaining timeout (correct me if I'm wrong).
> But still, when options.server_alive_count_max=1, we should exit after the
> first timeout.
>
Yes, we should since, as you pointed out, options.server_alive_count_max=1 :-)
--
Sincerely Your, Dan.
More information about the openssh-unix-dev
mailing list