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

global lua variables race condition #30

Open
dup2 opened this issue Jul 8, 2020 · 0 comments
Open

global lua variables race condition #30

dup2 opened this issue Jul 8, 2020 · 0 comments

Comments

@dup2
Copy link

dup2 commented Jul 8, 2020

Using this with lua jit 2.1-20190912 from https://github.com/openresty/luajit2 renders warnings about global variables

[warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('file_size') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables

and

[warn] 6#6: *1 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('file_data') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables

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

No branches or pull requests

1 participant