431 Too Many Headers when getting largefiles
Ansis Māliņš
ansis.malins at gmail.com
Sun Oct 3 13:45:41 UTC 2021
Hello. I have a repository with lots of largefiles. Since recently, people
have trouble cloning it over HTTP. It fails at the step of "getting changed
largefiles". Cloning with --noupdate succeeds, but then hg update default
hangs Mercurial, and pressing Ctrl+C has it print "431 Too Many Headers" as
it quits. The repository is a hg serve behind an Nginx. Looking at the
logs, I've determined that the error is coming from hg serve and not Nginx.
I have also determined that the issue only occurs when Nginx is in the
loop. Talking directly to hg serve succeeds.
The relevant Nginx config is as follows:
large_client_header_buffers 4 1m;
location /hg/ {
proxy_pass http://127.0.0.1:8000/;
client_max_body_size 10g;
proxy_buffering off;
proxy_request_buffering off;
}
Where should I go from here?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20211003/6893ac09/attachment.html>
More information about the Mercurial
mailing list