Problem pulling through http proxy

toni.arte at nokia.com toni.arte at nokia.com
Tue May 25 07:18:26 CDT 2010


>From: mercurial-bounces at selenic.com [mailto:mercurial-
>bounces at selenic.com] On Behalf Of Arte Toni (Nokia-D/Salo)
>Mercurial will send out a LONG request (~7 kbytes), and the proxy will
>answer with '400 Bad Request'. I have no idea on which web proxy we are
>using, but all the three ones our automatic proxy configuration script
>gives behave the same.

The email gateway broke the HTTP request into multiple lines. It really 
is a single line request, ~7 kilobytes in length.

I did some further study on this, and it really seems to be a configuration 
issue on the http proxy server. Most web servers seem to have a 
configuration variable for the maximum request length.

In the case of Apache, this actually isn't that far off from the default 
Maximum request length on Apache (the default value is 8190 bytes):

http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline

So, you may very well run into a case where you cannot run
'hg incoming' or 'hg pull' from a large repository at all. This of
course only happens on a case when you are missing a large number
of changesets, on the default Apache configuration.
--
Toni





More information about the Mercurial mailing list