Cluster: fix misleading accept errors.

This commit is contained in:
Yossi Gottlieb 2020-03-22 14:46:16 +02:00
parent fa9aa90813
commit 4c08ae3ff6

View File

@ -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;
} }