Closed liuaifu closed 1 month ago
Can you show us how are you constructing cfg
.
std::string g_redis_ip = "127.0.0.1";
uint16_t g_redis_port = 6379;
// ----------------------------------------
config cfg;
cfg.addr.host = g_redis_ip;
cfg.addr.port = std::to_string(g_redis_port);
@criatura2
Did you manage to solve the problem? I don't see anything wrong with your code. Can you connect to this address using redis-cli? Sorry for being late to this conversation, I have had some busy days.
This problem occurs on some computers, I did not solve it, using redis-cli can connect to the address, I changed to hiredis. Expect boost.redis to become more stable and I'll come back and use it
I'm using Boost1.85 + Redis7.0. I made a few changes to a example, and when the async_exec function is executed, it will output some error messages, which seem related to resolving domains. However, my connected IP address is 127.0.0.1, port 6379, which is the default value. I am very puzzled by this error message, please help me troubleshoot the problem. Thank you.