Problem pulling through http proxy at at
Tue May 25 02:40:14 CDT 2010

> at wrote, On 05/24/2010 02:42 PM:
>> Hi all,
>> I'm doing some performance testing on Mercurial, using the Linux
>> kernel Mercurial repository as the test data.
>> I noticed a problem with the http proxy setup:
>> * I have no problems cloning the whole repository over a proxy
>> * But if I clone the repo up to a certain revision, any attempts to do
>> a 'hg incoming' or 'hg pull' fails
>> * This happens on any version of Mercurial I have tried (including
>> 1.5.3), and it's the same on Windows and Linux
>> * Connecting directly into the Internet solves the problem, but that
>> is not possible within our office premises
>It seems like the proxy chokes on the Mercurial http traffic. Is it
>filtering aggresively? Could you check the proxy logs?
>It could be related to big http requests - see
> (and perhaps
> and

Straight to the point Mads...

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 request in question is:
Accept-Encoding: identity
user-agent: mercurial/proto-1.0

And this is the reply from the proxy
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 691


More information about the Mercurial mailing list