liang
liang
need to handle the DISCONNECT message rather than getting "Unexpected error while reading STDOUT from process".
lua code: local lfs=require("lfs") lfs.xxxxxx openresty got warnning message like : 2022/03/04 09:37:52 [warn] 13025#13025: *37 [lua] _G write guard:12: writing a global Lua variable ('lfs') which may lead to...
my lua code is just like this: local file = io.popen("tail -f /var/log/ping.log") for line in file:lines() do local bytes, err = wb:send_text(line) ngx.log(ngx.INFO, "LINE SENDED:",line,":",bytes,":",err) if not bytes then...