nuttx/net/tcp
Zhe Weng b058f37353 net/tcp: Reply RST when we cannot receive data
According to RFC 2525, Section 2.17:
"When an application closes a connection in such a way that it can no longer read any received data, the TCP SHOULD, per section 4.2.2.13 of RFC 1122, send a RST if there is any unread received data, or if any new data is received."

When our TCP socket is closed (even when the thread has exited), the peer can keep sending data and NuttX keeps replying ACK (we've tried for ~12h). This is not a good behavior (also different from Linux), so send RST instead of ACK for data receiving in FIN_WAIT.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-03-29 09:22:00 -03:00
..
Kconfig Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
Make.defs
tcp_accept.c
tcp_appsend.c
tcp_backlog.c
tcp_callback.c
tcp_close.c
tcp_conn.c Improvements in TCP connections allocation. 2023-02-20 09:06:46 +08:00
tcp_connect.c net/tcp: remove conn check since which can not be NULL 2023-02-02 13:31:06 +08:00
tcp_devpoll.c
tcp_dump.c
tcp_finddev.c net: modify find device logic 2023-02-12 01:25:34 +08:00
tcp_getsockopt.c
tcp_input.c net/tcp: Reply RST when we cannot receive data 2023-03-29 09:22:00 -03:00
tcp_ioctl.c
tcp_ipselect.c
tcp_listen.c
tcp_monitor.c
tcp_netpoll.c socket: divide errno & s_error 2023-02-23 16:40:19 +01:00
tcp_notifier.c Typo fixes. 2023-02-17 11:17:11 -03:00
tcp_recvfrom.c
tcp_recvwindow.c
tcp_send_buffered.c net/tcp: remove conn check since which can not be NULL 2023-02-02 13:31:06 +08:00
tcp_send_unbuffered.c
tcp_send.c
tcp_sendfile.c net/sendfile: adapt sendfile() to support new driver model 2023-02-14 11:21:09 +08:00
tcp_seqno.c
tcp_setsockopt.c
tcp_shutdown.c
tcp_timer.c
tcp_txdrain.c
tcp_wrbuffer.c
tcp.h