mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
Cluster: use non-blocking I/O for the cluster bus.
This commit is contained in:
parent
f6efb6cdec
commit
1036b4b21b
@ -317,6 +317,10 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
redisLog(REDIS_VERBOSE,"Accepting cluster node: %s", server.neterr);
|
redisLog(REDIS_VERBOSE,"Accepting cluster node: %s", server.neterr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
anetNonBlock(NULL,cfd);
|
||||||
|
anetEnableTcpNoDelay(NULL,cfd);
|
||||||
|
|
||||||
|
/* Use non-blocking I/O for cluster messages. */
|
||||||
/* IPV6: might want to wrap a v6 address in [] */
|
/* IPV6: might want to wrap a v6 address in [] */
|
||||||
redisLog(REDIS_VERBOSE,"Accepted cluster node %s:%d", cip, cport);
|
redisLog(REDIS_VERBOSE,"Accepted cluster node %s:%d", cip, cport);
|
||||||
/* We need to create a temporary node in order to read the incoming
|
/* We need to create a temporary node in order to read the incoming
|
||||||
|
Loading…
x
Reference in New Issue
Block a user