Welcome! Log In Create A New Profile

Advanced

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

All files from this thread

File Name File Size   Posted by Date  
96 bytes open | download Wendal Chen 03/17/2011 Read message
agentzh
April 06, 2011 11:16PM
2011/3/17 agentzh <agentzh@gmail.com>:
>
> I've reproduced it on my side. This is indeed a bug. When ngx.exec()
> is used after ngx.location.capture() or ngx.location.capture_multi(),
> nginx 0.8.11+ will not close the client connection due to leaked
> request reference counter (r->main->count). A hacky work-around is to
> disable nginx http keepalive and rely on the browser (and other http
> clients) to actively close the connection. And that's why wget, curl,
> firefox, and other well-written http clients worked for you.
>
> Nginx 0.7.68 (and older) is confirmed to work in this context just
> because older nginx does not use reference counting.
>
> I'll attempt fix in the next few days. Thank you for reporting this
> and sorry about this issue :)
>

Sorry for the delay. I've caught a really bad cold recently :(

The good news is that I've just fixed this issue in ngx_lua's git HEAD:

https://github.com/chaoslawful/lua-nginx-module

Alternatively, you can try out the new release candidate tarball,
which also includes this fix:

https://github.com/chaoslawful/lua-nginx-module/tarball/v0.1.6rc4

Please let me know if it works for you :)

Have fun!
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

Wendal Chen March 15, 2011 03:30AM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

agentzh March 15, 2011 06:42AM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

Wendal Chen March 15, 2011 07:48AM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

agentzh March 17, 2011 02:48AM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec Attachments

Wendal Chen March 17, 2011 07:46AM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

agentzh April 06, 2011 11:16PM

Re: Issue in Lua-nginx-module when use both ngx.location.capture and ngx.exec

Wendal Chen April 07, 2011 03:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 119
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready