php - NGINX: Download stops after 1GB - upstream timed out (110: Connection timed out) -


There is a big problem on my site. Please help me fix it.

I have a site where users can download files from different sites (such as an uploaded hoster like they are uploaded). We work as a proxy, the user generates a link and downloads the file directly. Do not download anything to our script on the server a little bit like a premium link generator but different And it's not wrong.

If the user is downloading a file larger than 1 GB, then the download will be canceled when accessing 1 GB.

I have duplicated the error in the log file

I have tried to keep the settings high but did not help.

I tried the following:

  1 Nginx.conf: fastcgi_send_timeout 300s; Fastcgi_read_timeout 300s; 2. NGN host file: fastcgi_read_timeout 300; Fastcgi_buffers 8 128 km; Fstcgi_buffer_size 256k; 3. PHP.ini: max_execution_time = 60 (but my PHP script will automatically set it to 0) max_input_time = 60 memory_limit = 128M 4. PHP-FPM & gt; & Gt; Www.conf pm.max_children = 25 pm.start_servers = 2 pm.min_spare_servers = 2 pm.max_spare_servers = 12 request_terminate_timeout = 300s  

but nothing helps. What can I do to fix this problem? Server / NGN Infos: Memory: 32079 MB CPU: Model name: Intel (R) XOn (R) CPU E3-1230 v3 @ 3.30GHz (8 core) PHP: PHP 5.5 .15-1 ~ dotdeb.1 (CLI) (built: July 24 2014 16:44:04) NGINX: NGNX / 1.2.1 NGNX. Configure: worker_process8; Worker_connections 2048;

But the timing settings are not the point I guess. Because the download stops exactly at 1.604.408 KB. If I download with 20kb / s then downloads require more time, but in fact 1.604.408 KB will be canceled.

Thanks for any help. Please ask me if you need more information.

I have a similar problem where download 1024 MB

It was added to the nginx.conf file:

  readv () failed (104: reset connection by peer)   
  fastcgi_max_temp_file_size 1024m;  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -