Welcome! Log In Create A New Profile

Advanced

Re: How to abort subrequest properly?

July 03, 2013 08:00PM
El 03/07/13 08:54, Maxim Dounin escribió:
> Hello!
>
> On Wed, Jul 03, 2013 at 04:34:26AM +0400, Marat Dakota wrote:
>
>> Nobody knows?
>>
>>
>> On Sun, Jun 30, 2013 at 3:04 PM, Marat Dakota <dakota@brokenpipe.ru> wrote:
>>
>>> Hi,
>>>
>>> I am parsing a subrequest's body as it arrives. At some point I could
>>> decide that the subrequest's body is not well-formed. I want to stop
>>> receiving the rest of the subrequest's body and close its connection. My
>>> main request and all other subrequests should continue working.
>>>
>>> I've tried something like ngx_http_finalize_request(sr, NGX_ABORT). It
>>> looks like it's not the thing.
>>>
>>> What steps should be applied to abort a subrequest?
> As of now, it's not really possible to abort a subrequest without
> aborting main request.
>
If the subrequest uses the upstream mechanism, wouldn't it be safe to
just close the socket of upstream's connection? I'm assuming there
would be an entry in the error log, but is there anything harmful that
could come from it?

Marcus.

_______________________________________________
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 1081 June 30, 2013 07:06AM

Re: How to abort subrequest properly?

Marat Dakota 582 July 02, 2013 08:36PM

Re: How to abort subrequest properly?

Maxim Dounin 629 July 03, 2013 07:56AM

Re: How to abort subrequest properly?

Marat Dakota 590 July 03, 2013 09:20AM

Re: How to abort subrequest properly?

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

Re: How to abort subrequest properly?

Marat Dakota 691 July 03, 2013 04:42PM

Re: How to abort subrequest properly?

Eugaia 651 July 03, 2013 08:00PM

Re: How to abort subrequest properly?

Eugaia 681 July 03, 2013 08:40PM

Re: How to abort subrequest properly?

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

Re: How to abort subrequest properly?

Eugaia 669 July 04, 2013 06:44AM

Re: How to abort subrequest properly?

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



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

Online Users

Guests: 310
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