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

exporting global variable makes imposible to use redis inside any prosody plugin #68

Open
linuxmaniac opened this issue Jan 24, 2020 · 1 comment · May be fixed by #69
Open

exporting global variable makes imposible to use redis inside any prosody plugin #68

linuxmaniac opened this issue Jan 24, 2020 · 1 comment · May be fixed by #69

Comments

@linuxmaniac
Copy link

recently I've upgraded prosody and now my prosody plugin can't be loaded

Jan 24 02:28:39 sp1 (crit) prosody[28300]: modulemanager: Error initializing module 'sipwise_redis_sessions' on 'voip.sipwise.local': /usr/share/lua/5.2/redis.lua:10: Attempt to set a global: Redis = table: 0x559443704bf0
linuxmaniac added a commit to linuxmaniac/redis-lua that referenced this issue Jan 24, 2020
* use EXPORT_GLOBAL to control behaviour

fix nrk#68
@linuxmaniac linuxmaniac linked a pull request Jan 24, 2020 that will close this issue
linuxmaniac added a commit to linuxmaniac/redis-lua that referenced this issue Jan 27, 2020
@poVoq
Copy link

poVoq commented Jan 5, 2023

For reference: https://github.com/sipwise/prosody/blob/master/plugins/mod_sipwise_redis_sessions.lua

I guess this is still broken?

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

Successfully merging a pull request may close this issue.

2 participants