<DIV>hi all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>There are 2 modes of upstream, buffering and non-buffering. And there are some difference between them:</DIV>
<DIV>1. non-buffering mode doesn't support limit-rate.</DIV>
<DIV>2. a request in non-buffering mode decides the end of upstream by a) close of upstream; b) comparing the length of recived data and headers_out.content_length. While the request in buffering mode decides the end only by the close of upstream. As a result, in buffering mode, the upstream(such as a memcached cache) can't be keepalive, which leads the request in nginx to end after keepalive-time.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I want to know why does these difference exist?</DIV>
<DIV>Can't the non-buffering mode support limit-rate? can't the buffering mode decide the end of request by content-length?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Wu</DIV><br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr/>
<a href="http://help.163.com/special/007525G0/163mail_guide.html?id=2716" target="_blank">网易163/126邮箱百分百兼容iphone ipad邮件收发</a>
</span></span>