[Bug 3971] Race condition when using ControlMaster=auto with simultaneous connections
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Jun 24 21:39:17 AEST 2026
https://bugzilla.mindrot.org/show_bug.cgi?id=3971
--- Comment #2 from Jens Rosenboom <jens.rosenboom at web.de> ---
AFAIK the behaviour with a stale control socket is unchanged.
For testing, I started a ssh connection (with multiplexing enabled),
killed it (with -9), and started the same connection again.
What happens is that muxserver() tries to create the control socket,
but fails (as the stale control socket still exists). Then muxclient()
(same as in the past) tries to connect to the control socket, gets
ECONNREFUSED, deletes the stale socket, and continues with a regular
connection. A little bit later (in function ssh_session2())
muxserver_listener() is called and, when muxserver_sock is unset, it
calls muxserver() again, which then creates the bound and listening
control socket.
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
More information about the openssh-bugs
mailing list