[openssh-commits] [openssh] 03/03: upstream: better check for mux becoming ready. Would have

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Nov 26 14:47:02 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 582f3cffcf065263a55ed19bc3a453bb294c5a36
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Nov 26 03:45:20 2026 +0000

    upstream: better check for mux becoming ready. Would have
    
    simplified catching my most recent screwup
    
    OpenBSD-Regress-ID: 65272c00dc1203ccb6e49c0a4e542090c5d4aa0f
---
 regress/multiplex.sh | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/regress/multiplex.sh b/regress/multiplex.sh
index e23f7d2b3..fcbe523a8 100644
--- a/regress/multiplex.sh
+++ b/regress/multiplex.sh
@@ -1,4 +1,4 @@
-#	$OpenBSD: multiplex.sh,v 1.43 2026/09/23 21:45:51 djm Exp $
+#	$OpenBSD: multiplex.sh,v 1.44 2026/11/26 03:45:20 djm Exp $
 #	Placed in the Public Domain.
 
 tid="connection multiplexing"
@@ -16,11 +16,13 @@ P=3301  # test port
 wait_for_mux_master_ready()
 {
 	for i in 1 2 3 4 5 6 7 8 9; do
-		${SSH} -F $OBJ/ssh_config -S $CTL -Ocheck otherhost \
-		    >/dev/null 2>&1 && return 0
+		test -S "$CTL" && break
 		sleep $i
 	done
-	fatal "mux master never becomes ready"
+	# Bound the hello exchange and disable fallback to a direct connection.
+	${SSH} -F $OBJ/ssh_config -S $CTL -Ocheck -oConnectTimeout=10 \
+	    -oProxyCommand=false otherhost >/dev/null 2>&1 ||
+	    fatal "mux master never becomes ready"
 }
 
 maybe_add_scp_path_to_sshd

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list