Permalink
Browse files

MSG_WAITALL is a noop on non-SOCK_STREAM sockets.

  • Loading branch information...
erichocean committed Mar 11, 2014
1 parent 98b329f commit 115ebf60fe766c7b76bb9a9cb20d0565bdb67b4d
Showing with 1 addition and 1 deletion.
  1. +1 −1 GCD/GCDAsyncUdpSocket.m
View
@@ -4298,7 +4298,7 @@ - (void)doReceive
size_t bufSize = max4ReceiveSize;
void *buf = malloc(bufSize);
- result = recvfrom(socket4FD, buf, bufSize, MSG_WAITALL, (struct sockaddr *)&sockaddr4, &sockaddr4len);
+ result = recvfrom(socket4FD, buf, bufSize, 0, (struct sockaddr *)&sockaddr4, &sockaddr4len);
LogVerbose(@"recvfrom(socket4FD) = %i", (int)result);
if (result > 0)

0 comments on commit 115ebf6

Please sign in to comment.