Great ! It works!!<br><br>Thank you for your help!!!<br><br><div class="gmail_quote">2011/4/7 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;">
2011/3/17 agentzh &lt;<a href="mailto:agentzh@gmail.com">agentzh@gmail.com</a>&gt;:<br>
<div class="im">&gt;<br>
&gt; I&#39;ve reproduced it on my side. This is indeed a bug. When ngx.exec()<br>
&gt; is used after ngx.location.capture() or ngx.location.capture_multi(),<br>
&gt; nginx 0.8.11+ will not close the client connection due to leaked<br>
&gt; request reference counter (r-&gt;main-&gt;count). A hacky work-around is to<br>
&gt; disable nginx http keepalive and rely on the browser (and other http<br>
&gt; clients) to actively close the connection. And that&#39;s why wget, curl,<br>
&gt; firefox, and other well-written http clients worked for you.<br>
&gt;<br>
&gt; Nginx 0.7.68 (and older) is confirmed to work in this context just<br>
&gt; because older nginx does not use reference counting.<br>
&gt;<br>
&gt; I&#39;ll attempt fix in the next few days. Thank you for reporting this<br>
&gt; and sorry about this issue :)<br>
&gt;<br>
<br>
</div>Sorry for the delay. I&#39;ve caught a really bad cold recently :(<br>
<br>
The good news is that I&#39;ve just fixed this issue in ngx_lua&#39;s git HEAD:<br>
<br>
    <a href="https://github.com/chaoslawful/lua-nginx-module" target="_blank">https://github.com/chaoslawful/lua-nginx-module</a><br>
<br>
Alternatively, you can try out the new release candidate tarball,<br>
which also includes this fix:<br>
<br>
    <a href="https://github.com/chaoslawful/lua-nginx-module/tarball/v0.1.6rc4" target="_blank">https://github.com/chaoslawful/lua-nginx-module/tarball/v0.1.6rc4</a><br>
<br>
Please let me know if it works for you :)<br>
<br>
Have fun!<br>
<font color="#888888">-agentzh<br>
</font></blockquote></div><br>