lua-nginx-module
lua-nginx-module copied to clipboard
feature: add ngx_http_lua_ffi_worker_pids to get all workers pid map
I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project.
The ci is still failing. Please modify the .travis.yml, change the lua-resty-core to your repo and the related branch
CI is still failed. See https://app.travis-ci.com/github/openresty/lua-nginx-module/jobs/580097060
https://github.com/openresty/lua-nginx-module#data-sharing-within-an-nginx-worker You need to add examples to the doc like the above link.
@zhuizhuhaomeng I think this is a worker API, you can use this API to know all Nginx worker PID, just an API, not a big function impl, It is not in one level with a big module(eg: ngx_http_lua_shdict), in order to this small API to write a long doc is dirty? And this doc will include some API that is not included by Openresty.
It seems that ci failure is not related to my change.
merge with the following patch
diff --git a/t/062-count.t b/t/062-count.t
index d524da47..ad464ba2 100644
--- a/t/062-count.t
+++ b/t/062-count.t
@@ -438,7 +438,7 @@ thread: 3
--- request
GET /test
--- response_body
-worker: 4
+worker: 5
--- no_error_log
[error]