<div dir="ltr">Thanks a lot for your reply.<div><br></div><div>So we can regard the patch is right, but it's not recommended. </div><div>Because it's more easily to break the request behavior in limiting rate.</div><div>And the limit_rate variable is also <span style="color:rgb(0,0,0);font-family:verdana,arial,"bitstream vera sans",helvetica,sans-serif;font-size:13px">deprecated though it's so useful</span></div><div><span style="color:rgb(0,0,0);font-family:verdana,arial,"bitstream vera sans",helvetica,sans-serif;font-size:13px">that we can dynamically change the rate. </span></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-14 21:11 GMT+08:00 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">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>
<span class=""><br>
On Tue, Feb 14, 2017 at 03:54:35PM +0800, 洪志道 wrote:<br>
<br>
> Dose nginx consider support setting variable about limit_rate_after?<br>
> We can limit rate after $n bytes received from upstream.<br>
<br>
</span>No. A patch to introduce the $limit_rate_after variable was made<br>
several years ago, see this ticket:<br>
<br>
<a href="https://trac.nginx.org/nginx/ticket/293" rel="noreferrer" target="_blank">https://trac.nginx.org/nginx/<wbr>ticket/293</a><br>
<br>
This approach is considered wrong though, and the patch wasn't<br>
committed. Proper way to go is believed to be variables support<br>
in the limit_rate_after directive, see here:<br>
<br>
<a href="https://trac.nginx.org/nginx/ticket/293#comment:5" rel="noreferrer" target="_blank">https://trac.nginx.org/nginx/<wbr>ticket/293#comment:5</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Maxim Dounin<br>
<a href="http://nginx.org/" rel="noreferrer" target="_blank">http://nginx.org/</a><br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx-devel</a></font></span></blockquote></div><br></div></div>