lua-resty-redis
lua-resty-redis copied to clipboard
when i pull the latest lua-restry-redis connet redis error
when i pull the latest lua-restry-redis connet redis error below
below is on part my lua local redis = require "resty.redis" local red = redis:new() red:set_timeout(50000) -- 1 sec local ok, err = red:connect(ip, port) --ngx.say(err) if not ok then ngx.log(ngx.ERR, "connect redis fail") return end
blow is the nginx error log: 2020/03/10 18:39:58 [error] 5960#0: *3533647 [lua] forbid.lua:13: connect redis fail, client: 10.5.24.183, server: nginx-test.myscrm.cn, request: "GET / HTTP/1.1", host: "nginx-test.xxxx.cn"
when i download v0.27 it is all right
when i download v0.27 it is all right
Hello, could you reproduct your problems again, and print the err
? There should be more detail in the err
.