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,6 +681,7 @@ 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) {
if (connGetState(conn) == CONN_STATE_ERROR)
serverLog(LL_VERBOSE, serverLog(LL_VERBOSE,
"Error accepting cluster node connection: %s", "Error accepting cluster node connection: %s",
connGetLastError(conn)); connGetLastError(conn));