Hi, Maxim.<div><br></div><div>Can you please explain how this part could make problems for keepalive connections of backends?</div><div><br></div><div>Thank you!<br><br><div class="gmail_quote">2012/3/21 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span><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, Mar 21, 2012 at 10:53:45AM +0800, Abioy Sun wrote:<br>
<br>
> Hi All,<br>
><br>
> In the file ngx_http_upstream.c I found some code like this:<br>
><br>
> 1618     if (u->headers_in.status_n > NGX_HTTP_SPECIAL_RESPONSE) {<br>
> 1619<br>
> 1620         if (r->subrequest_in_memory) {<br>
> 1621             u->buffer.last = u->buffer.pos;<br>
> 1622         }<br>
><br>
> that means, if the status backend return if greater than 300, the first<br>
> part of the body would be abandoned.  Will this cause the issue that the<br>
> main request won't be woken again and keep sleeping until timeout? Or did I<br>
> misunderstand anything?<br>
<br>
</div></div>Do you use keepalive connections to backends?<br>
<br>
As far as I see, this may indeed cause problems with keepalive<br>
connections, though should be ok in non-keepalive case.<br>
<br>
Maxim Dounin<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>
</blockquote></div><br></div>