We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hiredis 模块又一个小问题,redis启动,正常链接时候没什么问题,如果redis没有启动,会出现一直pollhup日志,这个问题我觉得主要在hiredis封装设置channel时没有设置closecallback导致,句柄一直没有删掉, 我尝试给hiredis模块增加一个handclose函数,如下 void Hiredis::handleClose() { ::redisAsyncHandleRead(_context); }
setchannel时做下如下操作 _channel->setCloseCallback(std::bind(&Hiredis::handleClose, this));
这样问解决了
The text was updated successfully, but these errors were encountered:
No branches or pull requests
hiredis 模块又一个小问题,redis启动,正常链接时候没什么问题,如果redis没有启动,会出现一直pollhup日志,这个问题我觉得主要在hiredis封装设置channel时没有设置closecallback导致,句柄一直没有删掉,
我尝试给hiredis模块增加一个handclose函数,如下
void Hiredis::handleClose()
{
::redisAsyncHandleRead(_context);
}
setchannel时做下如下操作
_channel->setCloseCallback(std::bind(&Hiredis::handleClose, this));
这样问解决了
The text was updated successfully, but these errors were encountered: