[Bug 5318] New: SSH connections via hang with ControlMaster/ControlPersist
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Aug 4 07:00:21 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5318
Bug ID: 5318
Summary: SSH connections via hang with
ControlMaster/ControlPersist
Product: Mercurial
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: peter.wullinger+hg at googlemail.com
CC: mercurial-devel at selenic.com
Enabling OpenSSHs session sharing feature, for example via
ControlMaster auto
ControlPath ~/.ssh/%r@%h-%p
ControlPersist 30m
in ~/.ssh/config, causes mercurial to hang on ssh connection for the first
connect to that host:
% hg pull -u
hg pull -u
pulling from ssh://repo
searching for changes
no changes found
# mercurials waits forever
I figured that this is because mercurial waits for the SSH process to exit.
However, the SSH "master" client only exits when the timeout is reached (or the
master connection otherwise terminated).
My current workaround is
- either create an initial connection to the target host via "ssh -f hostname
sleep 100000"
- or simply wait some time and Ctrl+C mercurial after pushes and pulls.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list