question on ngx_reset_pool() 'current' pointer not reset

Ravi Chunduru ravivsn at gmail.com
Thu Jan 16 22:56:53 UTC 2014


Hi Nginx experts,
  I am new to nginx and started looking into the code to understand the
architecture.

Currently, I am looking into nginx pool implementation. I have a question
on ngx_reset_pool().
It seems to set back 'last' to the location as expected. But why 'current'
and 'failed' are not reset.

Does it not make those memory blocks which are not no more referenced by
parsing from 'current' made useless?

Thanks,
-- 
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20140116/2329f7e0/attachment.html>


More information about the nginx-devel mailing list