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
50dcd9f9
Commit
50dcd9f9
authored
Mar 22, 2020
by
Yossi Gottlieb
Committed by
antirez
Mar 25, 2020
Browse files
Cluster: fix misleading accept errors.
parent
87dbd8f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
50dcd9f9
...
@@ -681,9 +681,10 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
...
@@ -681,9 +681,10 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
* or schedule it for later depending on connection implementation.
* or schedule it for later depending on connection implementation.
*/
*/
if (connAccept(conn, clusterConnAcceptHandler) == C_ERR) {
if (connAccept(conn, clusterConnAcceptHandler) == C_ERR) {
serverLog(LL_VERBOSE,
if (connGetState(conn) == CONN_STATE_ERROR)
"Error accepting cluster node connection: %s",
serverLog(LL_VERBOSE,
connGetLastError(conn));
"Error accepting cluster node connection: %s",
connGetLastError(conn));
connClose(conn);
connClose(conn);
return;
return;
}
}
...
...
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