Browse Source

Revert "Don't use MSG_WAITALL on unix sockets"

This reverts commit 24d89a3e72.

Do use it...
master
Con Kolivas 10 years ago
parent
commit
22ece7b96c
  1. 2
      src/libckpool.c

2
src/libckpool.c

@ -932,7 +932,7 @@ int read_length(int sockd, void *buf, int len)
if (unlikely(sockd < 0)) if (unlikely(sockd < 0))
return -1; return -1;
while (len) { while (len) {
ret = recv(sockd, buf + ofs, len, 0); ret = recv(sockd, buf + ofs, len, MSG_WAITALL);
if (unlikely(ret < 1)) if (unlikely(ret < 1))
return -1; return -1;
ofs += ret; ofs += ret;

Loading…
Cancel
Save