Description
I'm trying to reconnect when the Redis server shutsdown using Redis Sentinel.
When boost::redis::not_connected occurs while using async_exec, I want to connect to a valid Redis server using Sentinel.
However, when async_exec uses config::reconnect_wait_interval, it keeps trying to connect to the previously disconnected Redis server.
If I don't use config::reconnect_wait_interval, I can get a new IP from Sentinel after boost::redis::not_connected is returned by async_exec.
But due to Redis failover time, I get the same IP/Port as before.
If I use this to execute async_exec, "Connection lost: No connection could be made because the target machine actively refused it" occurs, and then async_exec hangs.
Is there a way to connect to a valid Redis server using Sentinel?