posix: sockets: Fix timeout regression of recvfrom
Commit de41971aab3b9da84ee3d5db8406ecdf4b0e21b4 sets the default timeout to 0. This change should not have been part of the commit. Signed-off-by: Francois Berder <francois.berder@imgtec.com>
This commit is contained in:
parent
8f839fbc31
commit
8d2ec19be6
@ -814,7 +814,7 @@ ssize_t recvfrom(int socket, void *restrict buffer, size_t length, int flags,
|
||||
#ifdef MODULE_SOCK_UDP
|
||||
case SOCK_DGRAM:
|
||||
/* TODO: apply configured timeout */
|
||||
if ((res = sock_udp_recv(&s->sock->udp, buffer, length, 0,
|
||||
if ((res = sock_udp_recv(&s->sock->udp, buffer, length, SOCK_NO_TIMEOUT,
|
||||
&ep)) < 0) {
|
||||
errno = -res;
|
||||
res = -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user