Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.7.59

Maxim Dounin
May 26, 2009 06:02AM
Hello!

On Tue, May 26, 2009 at 11:05:58AM +0200, Michał Jaszczyk wrote:

> Hey,
>
> Could you say something more about the socket leak? When exactly does it occur?

Here description of patch I've posted a while ago (on russian
mailing list, but there was at least link in english list as well):

[cut here]
Fix connection leak under some specific conditions.

Return code of ngx_http_output_filter() wasn't correctly checked in
ngx_http_writer() function. This resulted in incorrect processing of
connections closed prematurely by clients - these connections were sometimes
closed due to timeouts (and hence higher numbers of 'Writing' connections
were observed in stub_status module compared to previous versions), and
sometimes permanently leaked.

Since the issue is racy it's hard to reproduce it without accept filters
used. Though it's relatively easy too with

listen ... accept_filter=httpready;
sendfile_max_chunk 16k;

by requesting big file and closing client connection immediately.

The bug had appeared in 0.7.25.
[cut here]

I belive it can be also reproduced with limit_rate used, but I've
never checked.

Maxim Dounin
Subject Author Posted

nginx-0.7.59

Igor Sysoev May 25, 2009 07:28AM

Re: nginx-0.7.59

Dave Cheney May 25, 2009 08:33AM

Re: nginx-0.7.59

deltay May 25, 2009 08:55AM

Good NewS!

fei May 25, 2009 09:44AM

Re: nginx-0.7.59

Floren Munteanu May 25, 2009 02:08PM

Re: nginx-0.7.59

Igor Sysoev May 25, 2009 02:27PM

Re: nginx-0.7.59

Floren Munteanu May 25, 2009 03:49PM

Proxy Cache and Range Requests

Resicow May 25, 2009 06:18PM

Re: Proxy Cache and Range Requests

Igor Sysoev May 26, 2009 05:55AM

Re: nginx-0.7.59

Michał Jaszczyk May 26, 2009 05:05AM

Re: nginx-0.7.59

Maxim Dounin May 26, 2009 06:02AM

Re: nginx-0.7.59

Igor Sysoev May 26, 2009 06:00AM

Re: nginx-0.7.59

Michael Baudino May 26, 2009 08:20AM

Re: nginx-0.7.59

Igor Sysoev May 26, 2009 08:40AM

Re: nginx-0.7.59

Sergio Talens-Oliag May 26, 2009 10:34AM

Re: nginx-0.7.59

Wicked May 26, 2009 05:45PM

Re: nginx-0.7.59

fei May 27, 2009 12:51AM

Re: nginx-0.7.59

Wicked May 27, 2009 03:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 72
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready