Yes, I think so too.<div>I reviewed the code, and this is problem about design.</div><div><br></div><div>the current design is much clear.</div><div>Maybe Sysoev have some simple approach.<br><br><div class="gmail_quote">2010/2/1 agentzh <span dir="ltr">&lt;<a href="mailto:agentzh@gmail.com">agentzh@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2010/1/30 yong xue &lt;<a href="mailto:ultraice@gmail.com">ultraice@gmail.com</a>&gt;:<br>
<div class="im">&gt; hi, sysoev,<br>
&gt;     for proxy, can nginx give an new option, for example<br>
&gt; client_max_body_size_in_buffer,  it will be served synchronously from<br>
&gt; client<br>
&gt; if client body size is greater than client_max_body_size_in_buffer ?<br>
&gt;<br>
<br>
</div>According to the current implementation, no easy way. ngx_proxy calls<br>
the ngx_http_read_client_request_body function to do the content body<br>
reading task for it, which always buffer the input request before<br>
creating the request for the remote upstream server.<br>
<br>
Even though technically speaking we *can* do that, but I&#39;m afraid it<br>
will make things even worse if the backend server blocks a thread or a<br>
process on slow request processing (as in the Apache prefork mpm).<br>
<br>
So I don&#39;t think Igor Sysoev will do that *big* refactoring for<br>
something that often has little gain in real world ;)<br>
<br>
Cheers,<br>
-agentzh<br>
<br>
QQ 279005114 *grin*<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br><br>QQ:312200<br><br><a href="mailto:e-mail%3Aultraice@gmail.com">e-mail:ultraice@gmail.com</a><br><a href="mailto:MSN%3Ait@easy-boarding.com">MSN:it@easy-boarding.com</a><br>

</div>