Great ! It works!!<br><br>Thank you for your help!!!<br><br><div class="gmail_quote">2011/4/7 agentzh <span dir="ltr"><<a href="mailto:agentzh@gmail.com">agentzh@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/3/17 agentzh <<a href="mailto:agentzh@gmail.com">agentzh@gmail.com</a>>:<br>
<div class="im">><br>
> I've reproduced it on my side. This is indeed a bug. When ngx.exec()<br>
> is used after ngx.location.capture() or ngx.location.capture_multi(),<br>
> nginx 0.8.11+ will not close the client connection due to leaked<br>
> request reference counter (r->main->count). A hacky work-around is to<br>
> disable nginx http keepalive and rely on the browser (and other http<br>
> clients) to actively close the connection. And that's why wget, curl,<br>
> firefox, and other well-written http clients worked for you.<br>
><br>
> Nginx 0.7.68 (and older) is confirmed to work in this context just<br>
> because older nginx does not use reference counting.<br>
><br>
> I'll attempt fix in the next few days. Thank you for reporting this<br>
> and sorry about this issue :)<br>
><br>
<br>
</div>Sorry for the delay. I've caught a really bad cold recently :(<br>
<br>
The good news is that I've just fixed this issue in ngx_lua'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>