channels_redis icon indicating copy to clipboard operation
channels_redis copied to clipboard

Ping redis connection before using it

Open retupmoca opened this issue 2 years ago • 1 comments

If the redis server closes the connection, we may not know about that closure until we attempt to use it and get a network or aioredis error. If we ping-test the connection first, we can catch and reconnect without causing any application code to receive errors.

retupmoca avatar Apr 11 '22 14:04 retupmoca

Should fix #230

retupmoca avatar Apr 11 '22 14:04 retupmoca

This is no longer required as redis-py pools handle disconnects gracefully.

qeternity avatar Sep 14 '22 00:09 qeternity