<div>Thanks!</div><div><br></div>this blew code is in  limit_req <meta http-equiv="content-type" content="text/html; charset=utf-8">module:<div><br></div><div><div>static ngx_int_t</div><div>ngx_http_limit_req_lookup(ngx_http_limit_req_conf_t *lrcf, ngx_uint_t hash,</div>

<div>    u_char *data, size_t len, ngx_uint_t *ep)</div></div><div>{</div><div>..................................................................</div><div><div>                tp = ngx_timeofday();</div><div><br></div><div>

                now = (ngx_msec_t) (tp-&gt;sec * 1000 + tp-&gt;msec);</div><div>                ms = (ngx_msec_int_t) (now - lr-&gt;last);</div><div><br></div><div>                excess = lr-&gt;excess - ctx-&gt;rate * ngx_abs(ms) / 1000 + 1000;</div>

<div><br></div><div>                if (excess &lt; 0) {</div><div>                    excess = 0;</div><div>                }</div><div><br></div><div>                *ep = excess;</div><div><br></div><div>                if ((ngx_uint_t) excess &gt; lrcf-&gt;burst) {</div>

<div>                    return NGX_BUSY;</div><div>                }</div><div>...............................................</div><div>}</div><div><br></div><div>in this code ,  while  two or more request in one milliseconds , excess will be <span class="Apple-style-span" style="color: rgb(43, 43, 43); font-family: Arial, sans-serif; font-size: 12px; line-height: 14px; ">greater than 0,   </span><span class="Apple-style-span" style="color: rgb(43, 43, 43); font-family: Arial, sans-serif; font-size: 12px; line-height: 14px; ">in addition burst is 0 in default , </span><span class="Apple-style-span" style="color: rgb(43, 43, 43); font-family: Arial, sans-serif; font-size: 12px; line-height: 14px; ">therefore </span>ngx_http_limit_req_lookup will return NGX_BUSY, nginx will send 503 to client.  but  this situation is not send 503 to client. this is limit_req&#39;s bug?</div>

<meta http-equiv="content-type" content="text/html; charset=utf-8"><br>-- <br>博观约取<br><br>豆瓣:<a href="http://www.douban.com/people/mustang/" target="_blank">www.douban.com/people/mustang/</a><br><br>blog: <a href="http://www.pagefault.info" target="_blank">www.pagefault.info</a><br>

<br>twitter: <a href="http://www.twitter.com/minibobo" target="_blank">www.twitter.com/minibobo</a><br>
</div>