Commit 50dcd9f9 authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by antirez
Browse files

Cluster: fix misleading accept errors.

parent 87dbd8f5
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment