Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

How to abort subrequest properly?

$
0
0
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?

Thanks.

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

Viewing all articles
Browse latest Browse all 53287

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>