Periodically send pings to detect dead Redis connections (#9218)
This is done by creating a custom `RedisFactory` subclass that periodically pings all connections in its pool. We also ensure that the `replyTimeout` param is non-null, so that we timeout waiting for the reply to those pings (and thus triggering a reconnect).
Showing
- changelog.d/9218.bugfix 1 addition, 0 deletionschangelog.d/9218.bugfix
- stubs/txredisapi.pyi 8 additions, 4 deletionsstubs/txredisapi.pyi
- synapse/replication/tcp/handler.py 6 additions, 2 deletionssynapse/replication/tcp/handler.py
- synapse/replication/tcp/redis.py 92 additions, 51 deletionssynapse/replication/tcp/redis.py
Loading
Please register or sign in to comment