diff --git a/src/libckpool.c b/src/libckpool.c index 84e8ce8c..f3d218d1 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -932,7 +932,7 @@ int read_length(int sockd, void *buf, int len) if (unlikely(sockd < 0)) return -1; while (len) { - ret = recv(sockd, buf + ofs, len, MSG_WAITALL); + ret = recv(sockd, buf + ofs, len, 0); if (unlikely(ret < 1)) return -1; ofs += ret;