Closed zh3linux closed 8 years ago
https://github.com/cuiweixie/lua-resty-redis-cluster/blob/master/lib/resty/rediscluster.lua#L212
I change the 212nd lines of code for the rediscluster.lua file
< redis_client = redis:new()
---
> local redis_client = redis:new()
and it is working now.
code
In the case of concurrent will appear such mistakes
The resty.redis object instance cannot be stored in a Lua variable at the Lua module level, result in bad race conditions when concurrent requests are trying to use the same resty.redis instance (you would see the "bad request" or "socket busy" error to be returned from the method calls).
https://github.com/openresty/lua-resty-redis#limitations
How should I solve this problem?
thx