Closed cmouse closed 3 years ago
Can you confirm that your cqueues.lua line 85 is the same as https://github.com/wahern/cqueues/blob/b0c2bc5979f008a39300b01a0dc3e967c6257be9/src/cqueues.lua#L85 ?
Yes, I can confirm this.
Forgot to mention, this is with lua5.3
We debugged on IRC; the issue was that dovecot was saving away a lua_State*
and using that instead of the one passed to its C functions. All usage of coroutines was broken.
Hi!
When using cqeues in Dovecot push notification lua driver, I get the following error:
doveadm(testuser): Error: lua: /home/cmouse/.luarocks/share/lua/5.3/cqueues.lua:85: expected 1 arguments, got 5
using following code
Any ideas what to do with this? To reproduce locally, you need to compile dovecot manually as it requires a patch to change how Lua scripts are handled.