Welcome! Log In Create A New Profile

Advanced

In memory subrequest hang if backend return 500

March 20, 2012 10:54PM
Hi All,

In the file ngx_http_upstream.c I found some code like this:

1618 if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) {
1619
1620 if (r->subrequest_in_memory) {
1621 u->buffer.last = u->buffer.pos;
1622 }

that means, if the status backend return if greater than 300, the first
part of the body would be abandoned. Will this cause the issue that the
main request won't be woken again and keep sleeping until timeout? Or did I
misunderstand anything?

Yours,
Abioy
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

In memory subrequest hang if backend return 500

abioy 1252 March 20, 2012 10:54PM

Re: In memory subrequest hang if backend return 500

Maxim Dounin 480 March 21, 2012 04:56AM

Re: In memory subrequest hang if backend return 500

zealot83 663 March 21, 2012 05:14AM

Re: In memory subrequest hang if backend return 500

Maxim Dounin 536 March 21, 2012 06:46AM

Re: In memory subrequest hang if backend return 500

abioy 655 March 21, 2012 09:06AM



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

Online Users

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