Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1036b4b2
Commit
1036b4b2
authored
Sep 03, 2013
by
antirez
Browse files
Cluster: use non-blocking I/O for the cluster bus.
parent
f6efb6cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
1036b4b2
...
@@ -317,6 +317,10 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment