Welcome! Log In Create A New Profile

Advanced

keep-alive connection cause download hangs in Nginx after 0.7.67

January 27, 2011 10:48AM
Hello,

I am running into this download hanging issue. We are using nginx as a download server with SSL and secure download module enabled. When using nginx-0.7.67, it works well. But when we try to upgrade to nginx-0.8.54, there is a download hanging issue. We figured out it is related to keep-alive header or reusing TCP connection. When we download a small file and it finished, then in a few seconds, in same browser, if trying to download again, the download hangs. Nginx doesn't print out any log message. If we turn off keep-alive in either browser or nginx server in 0.8.54 by setting keepalive_timeout 0;, then it works well.

Our environment is: Solaris 10, nginx 0.7.67/0.8.54, secure download module, SSL.

The other difference between 0.7.67 and 0.8.54 is in the error.log message. In 0.7.67, when download finished, it always print out message as below:
2011/01/27 15:27:31 [info] 12616#0: *1 client xxx.xxx.xxx.xxx closed keepalive connection
But in 0.8.54, it never prints out this message. We have same config file for both 0.7.67 and 0.8.54.

I think setting keepalive_timeout to 0 is just a workaround and it may have performance impact. Trying to find out if there is better solution for this.

Thanks for any suggestions.
Subject Author Posted

keep-alive connection cause download hangs in Nginx after 0.7.67

WilliamOMS January 27, 2011 10:48AM

Re: keep-alive connection cause download hangs in Nginx after 0.7.67

Maxim Dounin January 27, 2011 12:32PM

Re: keep-alive connection cause download hangs in Nginx after 0.7.67

WilliamOMS January 27, 2011 02:25PM

Re: keep-alive connection cause download hangs in Nginx after 0.7.67

Rainer Duffner January 27, 2011 02:44PM

Re: keep-alive connection cause download hangs in Nginx after 0.7.67

Slash June 24, 2011 10:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 175
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready