Page 1 of 1

1GB File Limit on http

Posted: Sun Nov 30, 2014 9:09 pm
by szimre
Hi!

I've found that if you try to download files bigger than 1GB in size from your server your download will stop at 1GB without any errors on the client side (so it looks like that the download is completed while it's not, but stopped at 1GB (+/-100MB) and the file got corrupted)

I don't seem to find this configured anywhere, have anyone faced this issue before? Which files i should edit?

Web domain is set up like this:
Apache: default
nginx: no

(I don't think it's the server, but stats: VPS with 10GB RAM + 10GB vSwap, Quad-core E5v3, 500GB HDD, avarge load under 0.1 running latest Vesta version)

Please note that it's not a connection related problem, transferring over FTP or any other protocols works fine.

Thank you!

Re: 1GB File Limit on http

Posted: Tue Dec 09, 2014 10:58 pm
by szimre
bump

Re: 1GB File Limit on http

Posted: Tue Jun 23, 2015 1:20 pm
by Afternova
bump

Anyone?

Re: 1GB File Limit on http

Posted: Thu Jun 25, 2015 10:09 am
by skurudo
Bang! ;-)

Guys, look at nginx option - proxy_max_temp_file_size

Code: Select all

Syntax:	proxy_max_temp_file_size size;
Default:	proxy_max_temp_file_size 1024m;
Context:	http, server, location
http://nginx.org/en/docs/http/ngx_http_ ... _file_size

This variable indicates the max size of a temporary file when the data served is bigger than the proxy buffer. If it is indeed bigger than the buffer, it will be served synchronously from the upstream server, avoiding the disk buffering.
If you configure proxy_max_temp_file_size to 0, then your temporary files will be disabled.