Welcome! Log In Create A New Profile

Advanced

Re: Buffers of zero size and filter module

Valentin V. Bartenev
July 25, 2012 05:30PM
On Thursday 26 July 2012 00:06:37 Daniel Fiala wrote:
[...]
> My questions are:
>
> * Can such buffers of zero size really appear?

Yes, they can. They often used to indicate the end of stream or to
flush buffers.

> * Is the number of buffers of zero size small? As I understand, memory of
> the chain-link is not recycled until the http request is not fully
> processed.

But it is actively reused. If you look at the ngx_alloc_chain_link()
function you will find that it tries to get a link from pool->chain,
while ngx_free_chain() puts chain links to pool->chain.

wbr, Valentin V. Bartenev

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Buffers of zero size and filter module

Hagrid 1692 July 25, 2012 04:08PM

Re: Buffers of zero size and filter module

Valentin V. Bartenev 627 July 25, 2012 05:30PM

Re: Buffers of zero size and filter module

Hagrid 941 July 27, 2012 02:54AM

Re: Buffers of zero size and filter module

Valentin V. Bartenev 689 July 27, 2012 10:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 144
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