mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
when creating not connected clients do not add them into the clients list, otherwise they will be subject to timeouts and other stuff
This commit is contained in:
parent
7156f43c04
commit
7b72272790
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user