提交 1db17f25 编写于 作者: J Jerry Jacobs 提交者: Jan-Erik Rediger

redisBufferRead: Clear REDIS_CONNECTED flag when server closed connection

上级 8e6d8195
......@@ -808,6 +808,7 @@ int redisBufferRead(redisContext *c) {
return REDIS_ERR;
}
} else if (nread == 0) {
c->flags &= ~REDIS_CONNECTED;
__redisSetError(c,REDIS_ERR_EOF,"Server closed the connection");
return REDIS_ERR;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册