Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep got warning message with openresty #155

Open
rttw opened this issue Mar 4, 2022 · 0 comments
Open

keep got warning message with openresty #155

rttw opened this issue Mar 4, 2022 · 0 comments

Comments

@rttw
Copy link

rttw commented Mar 4, 2022

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 race conditions between concurrent requests, so prefer the use of 'local' variables
stack traceback:
[C]: at 0x7fbb0d0dda20
[C]: in function 'require'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant