push over http hanging

Georg gwk.rko at googlemail.com
Sun Jul 30 17:08:28 UTC 2006


2006/7/28, Bryan O'Sullivan <bos at serpentine.com>:
>
> On Fri, 2006-07-28 at 14:46 +0200, Georg wrote:
>
> > then it just hangs.  No CPU consumption on either client or server.
> > The last line in the server access_log (Apache) is:
>
> What platform and Python are you using?  Have you tried running
> tests/test-http-push to see if that hangs for you, too?


I think the test looks good:


hunter[14]$ ./test-push-http
/home/hunter/gwk/Desktop/mercurial-0.9.1/tests/test
adding a
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
/home/hunter/gwk/Desktop/mercurial-0.9.1/tests/test2
% expect ssl error
pushing to http://localhost:20059/
searching for changes
ssl required
% expect authorization error
pushing to http://localhost:20059/
searching for changes
push not authorized
% expect authorization error: must have authorized user
pushing to http://localhost:20059/
searching for changes
push not authorized
% expect success
pushing to http://localhost:20059/
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
rolling back last transaction
% expect authorization error: all users denied
pushing to http://localhost:20059/
searching for changes
push not authorized
% expect authorization error: some users denied, users must be authenticated
pushing to http://localhost:20059/
searching for changes
push not authorized
hunter[15]$

and indeed pushing seems to work when I use 'hg serve', only fails when
using Apache2 / cgi. I get *no* error messages, even when pushing is not
enabled in hgrc, or when ssl is required.  Only with
hg serve will I see the error messages on the hg serve console (still the
client command just hangs).

Obviously I want to push using Apache, as hg serve (to my knowledge) does
not offer any authentication.

Did anyone have success pushing over http with Apache? My apache config is:

Alias /hg /opt/www/cgi-hg
<Directory "/opt/www/cgi-hg">
    DirectoryIndex index.cgi
    AddHandler cgi-script .cgi
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

<Location ~ "/hg/SimManager">
   AuthType Basic
   AuthName "trac-SimManager"
   AuthUserFile /etc/apache2/passwd-SimManager
   Require valid-user
</Location>


The most recent tests were now done with both client and server on my
laptop, Ubuntu 6.06, Apache 2.0.55, Python 2.4.3, Mercurial 0.9.1.

--
Regards,
Georg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20060730/e1b4afe8/attachment-0001.html>


More information about the Mercurial mailing list