On 8/1/21 3:32 AM, Maxim Dounin wrote:
Hello!

On Fri, Jul 30, 2021 at 10:40:00AM +0200, Pierre Couderc wrote:

I am trying to download a 12M pdf file and it takes more than 4 minutes
with http nginx while it takes a few seconds with scp.

I have asked detailed log here https://paste.debian.net/1206029/

I see timeouts but I am not able to interpret them correctly.

nginx is in lxd container in a nearly not used  server (htop load
average 0.08 ...).

I use nearly defaut debian configuration of nginx.
The logs provided suggest that the client is limiting download
rather than nginx.  Further, the client seems to do at least 17
various range requests to the file which is being downloaded, thus
downloading many more than the file itself, but this is probably
not the issue.  Rather, the issue seems that the client does not
proceed with the file download while doing these requests.

Try disabling Firefox PDF Viewer to see if it helps (Preferences
-> General -> Applications -> Portable Document Format (PDF), set
to "Save File", see [1]).  Alternatively, try using curl (or wget,
or fetch, or whatever you prefer) to download the file instead of
trying to view it in the browser.

[1] 
https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-or-choose-another-viewer#w_disable-the-built-in-pdf-viewer-and-use-another-viewer

Thank you very much, I had not the idea it could be a client such as firefox, which I suppose bulletproof...

So I followed your idea and tried with wget : about  2 minutes 40s..

This is too much long too as with scp (in wifi at 2meters from the server) it is only 3 seconds... ;)

Log is here (shorter ;) : https://paste.debian.net/1206278/

Thank you again...

PC

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to