lua-nginx-module
lua-nginx-module copied to clipboard
Embed the Power of Lua into NGINX HTTP servers
Return value of a function `lua_touserdata` is dereferenced without checking for NULL, but it is usually checked for this function: https://github.com/openresty/lua-nginx-module/blob/9688812a4eba47c1f43892c998e50b988d740f5d/src/ngx_http_lua_socket_tcp.c#L4662-L4673 Similar issue with fucntion `ngx_http_lua_get_req`: https://github.com/openresty/lua-nginx-module/blob/9688812a4eba47c1f43892c998e50b988d740f5d/src/ngx_http_lua_socket_tcp.c#L5112-L5117 After having been...
According to the documentation here: https://github.com/openresty/lua-nginx-module#coroutinecreate `coroutine.create` can be used in `init_by_lua*, header_filter_by_lua*, body_filter_by_lua*,` because OpenResty would replace OpenResty's coroutine with the Lua native coroutine in these phases, which can...
Hello! I have a trouble with reload nginx-ingress. I have a theory that k8s has so many ingress-crd inside, that lua blocking nginx worker and clients see 502 error. I...
https://github.com/nginx/nginx/blob/master/src/event/quic/ngx_event_quic.c https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_util.c error: ‘ngx_quic_input_handler’ undeclared (first use in this function); did you mean ‘ngx_quic_pto_handler’?
Howdy. Anyone ever encountered something like this? It's not something I can reproduce unfortunately but I encountrred it several timer now. ``` #0 0x00007f12771747ae in gc_traverse_tab (t=0x7edcdddc5a28, g=0x7f1276be73f0) at lj_gc.c:217...
请问在 nginx module 中,如何判断 是在 openresty 环境下,并且向 lua 注册 C 函数。 ngx_lua_foo_module: ```c #include #include // ... some C code running in pure nginx // 如何判断?? #ifdef OPENRESTY #include #include...
**Nginx Version:** ``` nginx version: openresty/1.27.1.2 built by gcc 8.5.0 20210514 (TencentOS 8.5.0-18) (GCC) built with OpenSSL 1.1.1k FIPS 25 Mar 2021 TLS SNI support enabled ``` **Nginx.conf:** ``` ......
Hello, I have a very strange issue where I'm setting a custom header and writing a simple message, and sometimes, the custom header is not part of the response. What...
Not sure if this is the right channel to post this specific query. Please guide if it's not. We are facing following link error for upgrading kong to 3.9.1. libluajit-5.1.so.2:...
The doc says: ``` syntax: newstr = ngx.escape_uri(str, type?) context: init_by_lua*, init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_filter_by_lua*, body_filter_by_lua*, log_by_lua*, ngx.timer.*, balancer_by_lua*, ssl_certificate_by_lua*, ssl_session_fetch_by_lua*, ssl_session_store_by_lua*, exit_worker_by_lua*, ssl_client_hello_by_lua* Since v0.10.16, this function...