socket: remove unnecessary MSG_DONTWAIT flag
This is not needed since sockets are non-blocking by default.
This commit is contained in:
parent
f231efb811
commit
e7fc2d31cc
1 changed files with 1 additions and 1 deletions
2
socket.c
2
socket.c
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue