<div dir="ltr"><div style>Hi Maxim,</div><div><br></div>Are there any adequately hardcore methods to close subrequest's connection? I mean, what steps should be done internally?<div><br></div><div>For now, I'm just setting a flag in subrequest's context and just ignoring the data in subrequest's body filter depending on this flag. It is ok, but if there is a relatively simple way to close the connection to avoid meaningless data transfers and meaningless waits for subrequest to be finished — it would be nice.<br>
<div><br></div><div>Thanks.</div><div><br></div><div>--</div><div>Marat<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 3, 2013 at 3:54 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<div><div class="h5"><br>
On Wed, Jul 03, 2013 at 04:34:26AM +0400, Marat Dakota wrote:<br>
<br>
> Nobody knows?<br>
><br>
><br>
> On Sun, Jun 30, 2013 at 3:04 PM, Marat Dakota <<a href="mailto:dakota@brokenpipe.ru">dakota@brokenpipe.ru</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I am parsing a subrequest's body as it arrives. At some point I could<br>
> > decide that the subrequest's body is not well-formed. I want to stop<br>
> > receiving the rest of the subrequest's body and close its connection. My<br>
> > main request and all other subrequests should continue working.<br>
> ><br>
> > I've tried something like ngx_http_finalize_request(sr, NGX_ABORT). It<br>
> > looks like it's not the thing.<br>
> ><br>
> > What steps should be applied to abort a subrequest?<br>
<br>
</div></div>As of now, it's not really possible to abort a subrequest without<br>
aborting main request.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/en/donation.html" target="_blank">http://nginx.org/en/donation.html</a><br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</font></span></blockquote></div><br></div></div></div></div>