question on ngx_reset_pool() 'current' pointer not reset

Ravi Chunduru ravivsn at
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

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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list