Welcome! Log In Create A New Profile

Advanced

Re: File download results in "110: Connection timed out" on nginx; Download continues until Linux Kernel 'tcp_fin_timeout' reached

January 30, 2016 08:29AM
Thanks a lot for the clarification. I did read the docs but the part with the sendfile and no successive writes was what i did not connect. I thought that because of "not for the
transmission of the whole response" it didn't apply in that case.

I tried to fix that by adding 'sendfile_max_chunk 32k' but this didn't help. To me when doing that it seems to be weird that many timers are added and deleted when starting the transfer

2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158511891
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 1:1454158451892
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158451892
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 1:1454158451894
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158451894
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 120000:1454158571894
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158571894
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 1:1454158451922
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158451922
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 1:1454158451923
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158451923
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer add: 12: 1:1454158451924
2016/01/30 12:54:11 [debug] 9259#0: *1 event timer del: 12: 1454158451924
... (many more follow)

So the only way to fix that for the moment to me is to set 'sendfile off' and also increase the 'send_timeout' to a more reasonable value in that case. Again thanks a lot for the clarification!

Cheers,
Markus
Subject Author Posted

Re: File download results in "110: Connection timed out" on nginx; Download continues until Linux Kernel 'tcp_fin_timeout' reached

Tolga Ceylan January 30, 2016 12:24AM

Re: File download results in "110: Connection timed out" on nginx; Download continues until Linux Kernel 'tcp_fin_timeout' reached

mbukowski January 30, 2016 08:29AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 63
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready