[Bug 2918] ssh ConnectTimeout is obeyed only on 1st ConnectionAttempt

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Feb 1 14:39:30 AEDT 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=2918

--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
Test case with patch:
$ time ssh/obj/ssh -vvv -o ConnectTimeout=2 -o ConnectionAttempts=2 -o
StrictHostKeyChecking=false -o UserKnownHostsFile=/dev/null 1.2.3.4
[...]
debug2: ssh_connect_direct
debug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address 1.2.3.4 port 22: Operation timed out
debug1: Trying again...
debug1: Connecting to 1.2.3.4 [1.2.3.4] port 22.
debug2: fd 3 setting O_NONBLOCK
debug1: connect to address 1.2.3.4 port 22: Operation timed out
ssh: connect to host 1.2.3.4 port 22: Operation timed out

real    0m5.077s
user    0m0.010s
sys     0m0.030s

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list