client: add debug message for recv() error

This commit is contained in:
Miroslav Lichvar 2015-10-15 11:57:54 +02:00
parent a5897840a0
commit 34ea8770d0

View file

@ -1366,6 +1366,7 @@ submit_request(CMD_Request *request, CMD_Reply *reply)
if (recv_status < 0) {
/* If we get connrefused here, it suggests the sendto is
going to a dead port */
DEBUG_LOG(LOGF_Client, "Could not receive : %s", strerror(errno));
n_attempts++;
if (n_attempts > max_retries) {