You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/01/17 17:03:03 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new pull request #121:
net/recv: correct the return value
xiaoxiang781216 opened a new pull request #121: net/recv: correct the return value
URL: https://github.com/apache/incubator-nuttx/pull/121
Linux Programmer's Manual:
RECV(2)
NAME
recv, recvfrom, recvmsg - receive a message from a socket
...
ERRORS
...
EAGAIN or EWOULDBLOCK
The socket is marked nonblocking and the receive operation
would block, or a receive timeout had been set and the timeout
expired before data was received. POSIX.1 allows either error
to be returned for this case, and does not require these constants
to have the same value, so a portable application should check
for both possibilities.
Change-Id: I1b917d819dcc396689c81bd63ac0faa21706db78
Signed-off-by: chao.an <an...@xiaomi.com>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] patacongo commented on issue #121: net/recv:
correct the return value
Posted by GitBox <gi...@apache.org>.
patacongo commented on issue #121: net/recv: correct the return value
URL: https://github.com/apache/incubator-nuttx/pull/121#issuecomment-575719248
In either case, ETIMEDOUT is not a valid error to be reported.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] patacongo merged pull request #121: net/recv:
correct the return value
Posted by GitBox <gi...@apache.org>.
patacongo merged pull request #121: net/recv: correct the return value
URL: https://github.com/apache/incubator-nuttx/pull/121
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] patacongo commented on issue #121: net/recv:
correct the return value
Posted by GitBox <gi...@apache.org>.
patacongo commented on issue #121: net/recv: correct the return value
URL: https://github.com/apache/incubator-nuttx/pull/121#issuecomment-575718760
The Linux Programmer's Reference is not a relevant specification. NuttX follows OpenGroup.org: https://pubs.opengroup.org/onlinepubs/009695399/functions/recv.html . The requirement there is compatible, but not identical:
[EAGAIN] or [EWOULDBLOCK]
The socket's file descriptor is marked O_NONBLOCK and no data is waiting to be received; or MSG_OOB is set and no out-of-band data is available and either the socket's file descriptor is marked O_NONBLOCK or the socket does not support blocking to await out-of-band data.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services