e749f6ca7e
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> |
||
---|---|---|
.. | ||
inet_globals.c | ||
inet_sockif.c | ||
inet_txdrain.c | ||
inet.h | ||
ipv4_getpeername.c | ||
ipv4_getsockname.c | ||
ipv4_setsockopt.c | ||
ipv6_getpeername.c | ||
ipv6_getsockname.c | ||
ipv6_setsockopt.c | ||
Kconfig | ||
Make.defs |