Cluster: Notify user on accept error

If we woke up to accept a connection, but we can't
accept it, inform the user of the error going on
with their networking.

(The previous message was the same for success or error!)
This commit is contained in:
Matt Stancliff
2014-03-06 12:27:13 -05:00
committed by antirez
parent 6aba87be82
commit 8bce654246

View File

@ -593,7 +593,7 @@ void clusterAcceptHandler(aeEventLoop *el, int fd, void *privdata, int mask) {
if (cfd == ANET_ERR) { if (cfd == ANET_ERR) {
if (errno != EWOULDBLOCK) if (errno != EWOULDBLOCK)
redisLog(REDIS_VERBOSE, redisLog(REDIS_VERBOSE,
"Accepting cluster node: %s", server.neterr); "Error accepting cluster node: %s", server.neterr);
return; return;
} }
anetNonBlock(NULL,cfd); anetNonBlock(NULL,cfd);