diff --git a/src/ckpool.c b/src/ckpool.c index 3f8e4aab..358054b2 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -706,11 +706,11 @@ int read_socket_line(connsock_t *cs, float *timeout) goto out; } ret = wait_read_select(cs->fd, *timeout); - if (ret < 0) { + if (ret < 1) { if (cs->ckp->proxy) - LOGINFO("Select failed in read_socket_line"); + LOGINFO("Select %s in read_socket_line", !ret ? "timed out" : "failed"); else - LOGERR("Select failed in read_socket_line"); + LOGERR("Select %s in read_socket_line", !ret ? "timed out" : "failed"); goto out; } ret = recv(cs->fd, readbuf, PAGESIZE - 4, MSG_DONTWAIT);