From 22ece7b96cc08081d8c332ed73ae3851d6c21ffb Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 25 Apr 2015 10:13:48 +1000 Subject: [PATCH] Revert "Don't use MSG_WAITALL on unix sockets" This reverts commit 24d89a3e72fc4bca6a72d5e55b3d7f7862c02d35. Do use it... --- src/libckpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libckpool.c b/src/libckpool.c index 011194fc..07a1727a 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, 0); + ret = recv(sockd, buf + ofs, len, MSG_WAITALL); if (unlikely(ret < 1)) return -1; ofs += ret;