Closed xrayw closed 10 months ago
@xrayw, it looks like socket
is expected to be a global variable, but the newer version of luasocket may not provide that. Can you try replacing socket
in socket.tcp
with require("socket")
, so the line 1831 looks like this:
local server, err = require("socket").tcp()
@pkulchenko Hi, boss, require("socket").tcp()
works for me. thank you very much.
my luasocket version: 3.1.0-1
i think we can check if the global socket is nil. we use require("socket").tcp()
I pushed a fix for it, but it can probably be updated to use (require"socket" or socket).tcp()
to also work with some older "luasocket" versions. Does that still work for you?
@pkulchenko (require"socket" or socket).tcp()
also works for me.
Hello, I use this useful lua ide to debug redis lua. I meet this error in debug mode.
but if i execute it directly(not in debug mode), no error report
lua version: 5.4 redis-lua: 2.0.4