zhuo.z
zhuo.z
@sepich hi, maybe you can refer to this https://github.com/openresty/lua-nginx-module/issues/2374#issuecomment-3162230815 and give some comment. TLDR: You can try other echo server, like jmalloc/echo-server or echo-nginx-module
@GitDemis, hi In a Kubernetes environment, you'll need to use the [FQDN](https://en.wikipedia.org/wiki/Fully_qualified_domain_name) `echo.eplat.svc.cluster.local` in the `ngx.socket.connect function`. The root cause here is that Nginx's resolver doesn't support ndots or [search...
Add k8s [dns-pod-service](https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/) document
> The subrequests of /pgsql and /mongo are forwarded only after receiving the body of the parent request; [lua_need_request_body](https://github.com/openresty/lua-nginx-module?tab=readme-ov-file#lua_need_request_body) is on,that means the request body data need to be read...
@chanjarster,this link https://forum.nginx.org/read.php?21,118976,278732#msg-278732 is 404 now...... In this case,`sendfile() failed (9: Bad file descriptor)` is related to nginx proxy module, not openresty. The root cause of this issue is that...
hi, 想问一下你的这个问题在你的环境里面复现概率高吗?是必现的吗? 理了一下这块的逻辑,看起来 `ngx_http_lua_shared_memory_init` 是先在 `ngx_init_cycle` 函数中被调用的,然后再是 `ngx_signal_worker_processes` 在 `ngx_init_cycle` 函数中被调用,`ngx_signal_worker_processes` 函数执行后,worker 进程才接收到 master 的命令进行退出操作,worker 退出后,master 才会接收到 **SIGCHLD** 信号。 也就是说在正常的 reload 操作下,当 master 接收到 worker 退出的信号时,ngx_cycle 已经是正确的值了。 不知道是不是我的方法有问题,我这边本地尝试本地复现也没有复现。 猜想上面的问题会不会是在 `ngx_http_lua_shared_memory_init`...
Lua-nginx module uses a flag `is_wrap` in `ngx_http_lua_coroutine_wrap` to indicate that the coroutine is created by `coroutine.wrap` https://github.com/openresty/lua-nginx-module/blob/9600893c310f6865efa7f799b1e6426bfd73b220/src/ngx_http_lua_coroutine.c#L97 When this flag is set, the first boolean value will not be...
I checked the Lua manual, and it doesn't explicitly state that coroutines created with `wrap` can be used in `resume`. Moreover, this approach appears to undermine the encapsulation provided by...
This issue seems similar to the issue https://github.com/openresty/lua-nginx-module/issues/376, it's a known limitation in LuaJIT. You can also refer to [lua-coroutine-yieldingresuming](https://github.com/openresty/lua-nginx-module#lua-coroutine-yieldingresuming).
The OpenSSL version on your system is a bit outdated, at least OpenSSL 1.1.0 is required.