Welcome! Log In Create A New Profile

Advanced

gunzip module and buffer managment

June 06, 2013 05:57PM
I'm trying to use the http_gunzip module as an example for a filter I am trying to write. I'm particularly interested in the buffer management.

The module has a value in its ctx stuct called last_buf

...
ngx_chain_t **last_out;
...

last_out is set in various places throughout the code. Sometimes to other chains in the ctx, sometimes to newly allocated chains.

But as far as I can tell, none of the code ever uses the value stored in last_out. (It seems to be a write-only variable :-)

Anybody know what I'm missing?
SubjectAuthorPosted

gunzip module and buffer managment

kpsteinJune 06, 2013 05:57PM

Re: gunzip module and buffer managment

Valentin V. BartenevJune 06, 2013 06:36PM

Re: gunzip module and buffer managment

honwelJune 06, 2013 10:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready