1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/net/tcp
chao.an e749f6ca7e net/tcp/monitor: do not migrate the state to close
1. remove the unnecessary interfaces tcp_close_monitor()

socket flags(s_flags) is a global state for net connection
remove the incorrect update for stop monitor

2. do not start the tcp monitor from duplicated psock

the tcp monitor has already registered in connect callback

------------------------------------------------------------
This patch also fix the telnet issue reported by:
https://github.com/apache/incubator-nuttx/pull/5434#issuecomment-1035600651

the orignal session fd is closed after dup, the connect state
has incorrectly migrated to close:

drivers/net/telnet.c:
 977 static int telnet_session(FAR struct telnet_session_s *session)
 ...
 1031   ret = psock_dup2(psock, &priv->td_psock);
 ...
 1082   nx_close(session->ts_sd);

Signed-off-by: chao.an <anchao@xiaomi.com>
2022-02-11 18:56:40 +09:00
..
Kconfig net/tcp: transformed NET_TCP_FAST_RETRANSMIT_WATERMARK option to boolean. 2022-01-26 11:50:48 +08:00
Make.defs net/inet: add support of FIONREAD 2021-07-05 06:20:52 -05:00
tcp.h net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
tcp_accept.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
tcp_appsend.c net/tcp/sendfile: retransmit only one the earliest not acknowledged segment 2022-01-20 18:37:39 +08:00
tcp_backlog.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
tcp_callback.c net/tcp: replace the common connect prologue 2022-02-10 15:04:33 -03:00
tcp_close.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_conn.c net/tcp: replace the common connect prologue 2022-02-10 15:04:33 -03:00
tcp_connect.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_devpoll.c net/can,icmp,icmpv6,tcp,tcp_timer,udp: device should poll only those connections that are bound to the device. 2021-10-11 23:09:00 -07:00
tcp_finddev.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
tcp_getsockopt.c net/tcp: only print the error when disable the TCP_NODELAY 2021-07-13 09:44:19 -03:00
tcp_input.c net/tcp/sendfile: removed excessive overwrites of conn->sndseq 2022-01-22 00:43:53 +08:00
tcp_ioctl.c net/inet: add support of FIONREAD 2021-07-05 06:20:52 -05:00
tcp_ipselect.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
tcp_listen.c net/tcp: sanity check for the listen address 2021-09-23 23:07:57 -07:00
tcp_monitor.c net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
tcp_netpoll.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_notifier.c tcp: simplify readahead 2021-06-30 06:22:14 +09:00
tcp_recvfrom.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_recvwindow.c net/tcp: change all window relative value type to uint32_t 2021-07-07 03:55:41 -05:00
tcp_send.c net: unify FAR keyword usage for all net buffer memory mapped buffers 2022-01-20 01:42:56 +08:00
tcp_send_buffered.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_send_unbuffered.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_sendfile.c net/tcp: remove the socket hook reference from netdev callback 2022-02-10 15:04:33 -03:00
tcp_seqno.c net/: Fix alignment and spacing problems found by tools/nxstyle. 2019-07-02 18:02:23 -06:00
tcp_setsockopt.c net/tcp: only print the error when disable the TCP_NODELAY 2021-07-13 09:44:19 -03:00
tcp_timer.c net/tcp/sendfile: NET_TCP_WRITE_BUFFERS and NET_SENDFILE were inconsistent with each other: 2022-01-17 01:42:41 +08:00
tcp_txdrain.c sched: Don't include nuttx/sched.h inside sched.h 2021-05-24 12:11:53 +09:00
tcp_wrbuffer.c net/tcp: transformed NET_TCP_FAST_RETRANSMIT_WATERMARK option to boolean. 2022-01-26 11:50:48 +08:00
tcp_wrbuffer_dump.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00