I have one client subscribe to one channel. After a certain period of time about 10 minutes idle, the client can not receive any message, but the publish command still returns 1. I've tried redis-py and servicestack.redis clients. The only difference is seems the idle period can be little longer when use servicestack.redis.
Any idea? Thanks in advance.
I had similar issues with an older version of Redis that was fixed by the latest version.
As an alternative you could try adding a separate thread that sends a "PING" command once in a while to keep the connection up.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.