Welcome! Log In Create A New Profile

Advanced

Re: How to abort subrequest properly?

Yichun Zhang (agentzh)
July 08, 2013 11:40PM
Hello!

On Thu, Jul 4, 2013 at 3:41 AM, Marcus Clyne <ngx.eugaia@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
Subject Author Views Posted

How to abort subrequest properly?

Marat Dakota 1086 June 30, 2013 07:06AM

Re: How to abort subrequest properly?

Marat Dakota 586 July 02, 2013 08:36PM

Re: How to abort subrequest properly?

Maxim Dounin 633 July 03, 2013 07:56AM

Re: How to abort subrequest properly?

Marat Dakota 594 July 03, 2013 09:20AM

Re: How to abort subrequest properly?

Yichun Zhang (agentzh) 551 July 03, 2013 04:02PM

Re: How to abort subrequest properly?

Marat Dakota 696 July 03, 2013 04:42PM

Re: How to abort subrequest properly?

Eugaia 659 July 03, 2013 08:00PM

Re: How to abort subrequest properly?

Eugaia 688 July 03, 2013 08:40PM

Re: How to abort subrequest properly?

Yichun Zhang (agentzh) 580 July 04, 2013 01:44AM

Re: How to abort subrequest properly?

Eugaia 676 July 04, 2013 06:44AM

Re: How to abort subrequest properly?

Yichun Zhang (agentzh) 682 July 08, 2013 11:40PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready