Closed tangwz closed 7 years ago
I don't think is anything to do with the connector. I haven't used pub/sub in a while, but IIRC your read_reply()
just blocks until a message turns up. So with a read timeout of 5 seconds, a gap of 5 seconds between messages would cause the connection to timeout.
Perhaps 60 seconds or something is more appropriate here?
@pintsized hello, Thanks.Now I know some problom with redis config and I close this. thank you again.
Hello, I use this lua-resty-redis-connector to connect redis sentinel. But when I subscribe the redis channel and read_reply in a while true loop, I received closed error sometimes. My code: The function redis_conn which return a redis-sentinel connection.
And the main loop.