'hg push' hangs if used trough a ssh-tunnel

Volker Simonis volker.simonis at gmail.com
Wed Mar 27 17:14:02 UTC 2013


I read that in a few blogs but was unsure because it usually says
something like "may be faster on slow connections but may also lead to
a considerably slowdown on fast connections". I'll give it a try the
next time I do a big push.

Thanks,
Volker


On Wed, Mar 27, 2013 at 6:03 PM, Andrew Hughes <gnu.andrew at redhat.com> wrote:
>
> ----- Original Message -----
> > Hi,
> >
> > when pushing to our port repository
> > http://hg.openjdk.java.net/ppc-aix-port/jdk7u/ I sometimes encounter
> > strange hangs.
> >
> > Because I am behind a corporate firewall, I have to use an SSH-tunnel
> > to
> > access the repository. I'm doing the following:
> >
> > hg push ssh://simonis@
> > <internel_tunnel_host>:<tunnel_port>/ppc-aix-port/jdk8/jdk
> > pushing to ssh://simonis@
> > <internel_tunnel_host>:<tunnel_port>/ppc-aix-port/jdk8/jdk
> > Enter passphrase for key '<home_dir>/.ssh/id_rsa':
> > searching for changes
> >
> > After this message nothing more happens (for hours...). However if I
> > interrupt the command with <Ctrl>-C I get the following:
> >
> > ^Cinterrupted!
> > remote: adding changesets
> > remote: adding manifests
> > remote: adding file changes
> > remote: added 166 changesets with 654 changes to 470 files
> > remote: snapshot taken
> >
> > Notice that I don't get the final line "remote: notifying
> > ppc-aix-port-dev at openjdk.java.net" which is usually printed after
> > every
> > successfull push but the mailing list is notified nevertheless (i.e.
> > the
> > push is complete and the corresponding notification mail is send to
> > the
> > list after I typed <Ctrl>-C). So actually the push succeeds but I'm
> > nevertheless a little bit confused how long I have to wait until I
> > can
> > safely interrupt the hanging push:)
> >
> > I suppose that the problem is caused by the SSH-tunnel which I have
> > to use
> > but I'm not sure. It only happens on the 'jdk' repository if I push
> > many
> > (i.e. several hundred) changesets.
> >
> > Has anybody else encountered such problems and/or does anybody knows
> > any
> > workarounds?
> >
> > I'm using Mercurial 2.0.2 on Ubuntu 12.04.
> > The tunnel host uses:
> >
> > debug1: Remote protocol version 1.99, remote software version
> > OpenSSH_4.2
> > debug1: match: OpenSSH_4.2 pat OpenSSH_4*
> > debug1: Enabling compatibility mode for protocol 2.0
> > debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
> >
> > Thank you and best regards,
> > Volker
> >
>
> I do know that the OpenJDK servers can be quite slow at pushing, because
> they make ZFS snapshots, though it's a lot better than it used to be.
>
> Do you have "ssh = ssh -C" in $HOME/.hgrc?  Having ssh at least use
> compression might help a bit.
> --
> Andrew :)
>
> Free Java Software Engineer
> Red Hat, Inc. (http://www.redhat.com)
>
> PGP Key: 248BDC07 (https://keys.indymedia.org/)
> Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07
>



More information about the discuss mailing list