Hello!

On Thu, Jul 4, 2013 at 3:41 AM, Marcus Clyne <ngx.eug...@gmail.com> wrote:
> The upstream request obviously
> needs to be closed properly, but if the upstream cleanup function is going
> to be called anyway by the main request, then I'm not sure it really makes
> any difference, and you'd be running through the cleanup function twice.
>

The cleanup function usually protects against being called multiple
times by means of something like the following code snippet:

    if (u->cleanup) {
        *u->cleanup = NULL;
        u->cleanup = NULL;
    }

So it won't be an issue here at all.

Regards,
-agentzh

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to