nuttx/net/usrsock
chao an 3a653c1d5e net/usrsock: read from the closed remote should return EOF
fix usrsock remote_disconnect fail:

nsh> usrsocktest
...
Testing group "remote_disconnect" =>
	[TEST ASSERT FAILED!]
		In function "receive":
		line 497: Assertion `(ssize_t)((ret)) == (ssize_t)((0))' failed.
			got value: -1
			should be: 0
	Group "remote_disconnect": [FAILED]
...

Reference:

RECV(2)

NAME
       recv, recvfrom, recvmsg - receive a message from a socket
...
RETURN VALUE
...
       When a stream socket peer has performed an orderly shutdown,
       the return value will be 0 (the traditional "end-of-file" return).

       Datagram sockets in various domains (e.g., the UNIX and Internet domains)
       permit zero-length datagrams.  When such a datagram is received, the return value is 0.

Signed-off-by: chao an <anchao@xiaomi.com>
2022-09-01 08:48:26 +09:00
..
Kconfig Kconfig: remove empty help sections 2021-07-23 02:32:19 -07:00
Make.defs net: usrsock: Haltian Ltd: update licenses to Apache 2021-11-15 06:49:32 -06:00
usrsock_accept.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_bind.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_close.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_conn.c net: Remove the unnecessary initialization code 2022-03-12 19:24:17 +02:00
usrsock_connect.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_dev.c net/usrsock: Change xid from uint64_t to uint32_t 2022-08-31 19:01:29 +02:00
usrsock_event.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_getpeername.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_getsockname.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_getsockopt.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_ioctl.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_listen.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_poll.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_recvmsg.c net/usrsock: read from the closed remote should return EOF 2022-09-01 08:48:26 +09:00
usrsock_sendmsg.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_setsockopt.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_socket.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
usrsock_sockif.c net/usrsock: fix build warning 2022-01-19 12:09:53 +01:00
usrsock.h net: remove pvconn reference from all devif callback 2022-08-26 20:58:11 +08:00