bugzilla-daemon at bugzilla
Oct 16, 2011, 10:33 AM
[Bug 1943] New: [PATCH] ssh -W opens two connections when ControlPersist is enabled.
Bug #: 1943
Summary: [PATCH] ssh -W opens two connections when
ControlPersist is enabled.
Product: Portable OpenSSH
AssignedTo: unassigned-bugs [at] mindrot
ReportedBy: ricky [at] rzhou
As reported earlier at
there is some strange interaction between ControlPersist and ssh -W
breaks things if you're using both. Specifically, ssh -W host:port
ControlPersist enabled opens up two connections to host:port and sends
data from both back.
I think this is happening because channel_connect_stdio_fwd is being
called twice, once in client_setup_stdio_fwd, which is called from
ssh_init_forwarding, and once in process_mux_stdio_fwd, which is
called once the client process starts talking to the master process.
It looks like the way ControlPersist is implemented, the process forks,
with the child becoming the master process and the child making its
connection through that. This patch makes client_setup_stdio_fwd not
get called the first time if need_controlpersist_detach is set, and
it happen through the master process.
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
openssh-bugs mailing list
openssh-bugs [at] mindrot