打错了,应该是ngx.worker.exiting()
在 2017年3月21日星期二 UTC+8上午9:43:19,FQ Liu写道:
If you process in a cycle, ngx.worker.exiting() maybe help.
while true do
if ngx.worker.exiting() then
-- send message to client
end
-- process --
end
在 2017年3月21日星期二 UTC+8上午1:43:21,RJoshi写道:
Hello,
I am using stream-lua-nginx-module module to build the TCP server to implement a custom protocol. One of the requirement is to send a message to all clients to stop sending data and close their connections particularly when OpenResty/Nginx is stopped. How do I retrieve all the client socket connections from the pool?
Thanks,
RJoshi