Welcome! Log In Create A New Profile

Advanced

Re: ngx_lua post data error/bug?

Nginx User
October 21, 2011 03:44PM
On 21 October 2011 21:06, Nginx User <nginx@nginxuser.net> wrote:
> This is a follow on from:
> http://mailman.nginx.org/pipermail/nginx/2011-October/029905.html
>
> The conditional statements take care of the basic error but what
> happens is that when "post" requests match any of the test regexes, an
> error is thrown ...
> "lua handler aborted: runtime error: attempt to yield across
> metamethod/C-call boundary blah, blah, blah".
>
> It appears this is due to a limitation in Lua 5.1 ...

Testing shows that the error is generated because of the
'dofile("/etc/nginx/regex_rules.lua")' line.

I.E., when the regex rules are placed directly in the
access_by_lua_file, a hit on a regex is processed as expected.
When the rules are included using the dofile function, a hit on a
regex results in the "attempt to yield across
> metamethod/C-call boundary" error.

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

ngx_lua post data error/bug?

Nginx User October 21, 2011 02:08PM

Re: ngx_lua post data error/bug?

Nginx User October 21, 2011 03:44PM

Re: ngx_lua post data error/bug?

agentzh October 21, 2011 09:26PM

Re: ngx_lua post data error/bug?

Nginx User October 22, 2011 02:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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