431 Too Many Headers when getting largefiles

Manuel Jacob me at manueljacob.de
Tue Jul 23 15:48:29 UTC 2024


Hi Ansis,

Were you able to find the root cause of the problem? I’m asking because 
someone has reported a similar problem to the bug tracker: 
https://bz.mercurial-scm.org/show_bug.cgi?id=6896

On 03/10/2021 15.45, Ansis Māliņš wrote:
> 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/ <http://127.0.0.1:8000/>;
>      client_max_body_size 10g;
>      proxy_buffering off;
>      proxy_request_buffering off;
> }
> 
> Where should I go from here?
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial



More information about the Mercurial mailing list