socket: remove unnecessary MSG_DONTWAIT flag

This is not needed since sockets are non-blocking by default.
This commit is contained in:
Miroslav Lichvar 2019-11-18 18:05:17 +01:00
parent f231efb811
commit e7fc2d31cc

View file

@ -819,7 +819,7 @@ receive_messages(int sock_fd, SCK_Message *messages, int max_messages, int flags
recv_flags = get_recv_flags(flags); recv_flags = get_recv_flags(flags);
#ifdef HAVE_RECVMMSG #ifdef HAVE_RECVMMSG
ret = recvmmsg(sock_fd, hdr, n, recv_flags | MSG_DONTWAIT, NULL); ret = recvmmsg(sock_fd, hdr, n, recv_flags, NULL);
if (ret >= 0) if (ret >= 0)
n = ret; n = ret;
#else #else