On 03/mai - 21:03, agentzh wrote:
> On Thu, May 3, 2012 at 6:43 PM, Pierre <serarien@baqs.net> wrote:
> >
> >
> > using echo_subrequest_async, I directly reach :
> > 2012/05/03 12:08:25 [error] 13204#0: *1 subrequests cycle while processing "/trucalacon",
> >
>
> Which version of nginx are you using?
tested on openresty 10.0.10 abd 1.0.11
>
> >
> > Last interrogation:
> > What is the best way to discard body (I mean free the memory by body passed to subrequests ) ?
> >
>
> There's no way to release all the memory of a subrequest instantly
> because nginx subrequests share the same memory pool as their parent
> request. So for long-running requests that issue a lot of serial
> subrequests, there will be a good chance of temporary memory leaks in
> the lifetime of the main request.
ok, thx
>
> It's worth mentioning that the ngx_lua cosocket API does not suffer
> from this issue because Lua GC handles the resource lifetime there.
:)
>
> Best regards,
> -agentzh
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx