提交 7b722727 编写于 作者: A antirez

when creating not connected clients do not add them into the clients list,...

when creating not connected clients do not add them into the clients list, otherwise they will be subject to timeouts and other stuff
上级 7156f43c
......@@ -57,7 +57,7 @@ redisClient *createClient(int fd) {
c->pubsub_patterns = listCreate();
listSetFreeMethod(c->pubsub_patterns,decrRefCount);
listSetMatchMethod(c->pubsub_patterns,listMatchObjects);
listAddNodeTail(server.clients,c);
if (fd != -1) listAddNodeTail(server.clients,c);
initClientMultiState(c);
return c;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册