nuttx/net/socket
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
..
accept.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
bind.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
connect.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
getpeername.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
getsockname.c net: unify socket into file descriptor 2021-03-03 19:01:41 -08:00
getsockopt.c net/inet: move socket timestamp into socket_conn_s 2022-02-10 15:04:33 -03:00
Kconfig net: limit NET_NACTIVESOCKETS to 4 when enable DEFAULT_SMALL 2021-10-10 19:59:28 -07:00
listen.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
Make.defs net: always compile listen.c and accept.c when enable CONFIG_NET 2021-10-10 19:59:02 -07:00
net_close.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
net_dup2.c net/tcp/monitor: do not migrate the state to close 2022-02-11 18:56:40 +09:00
net_fstat.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
net_poll.c net: unify socket into file descriptor 2021-03-03 19:01:41 -08:00
net_sendfile.c net/inet: move socket error into socket_conn_s 2022-02-10 15:04:33 -03:00
net_sockif.c net/socket_rpmsg: add net socket rpmsg support 2021-03-07 01:45:51 -08:00
net_timeo.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
net_vfcntl.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
recv.c net: Author Gregory Nutt: update licenses to Apache 2021-02-20 00:38:18 -08:00
recvfrom.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
recvmsg.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
send.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
sendmsg.c net/socket: move si_send/recv into sendmsg/recvmsg 2021-03-05 04:46:13 -08:00
sendto.c net/socket: Fix bug that sendto did not return an error 2021-08-19 01:31:05 -07:00
setsockopt.c net/inet: move socket timestamp into socket_conn_s 2022-02-10 15:04:33 -03:00
socket.c net/inet: move socket flags into socket_conn_s 2022-02-10 15:04:33 -03:00
socket.h net/inet: move socket error into socket_conn_s 2022-02-10 15:04:33 -03:00
socketpair.c net/socketpair: move socketpair implement into socket internal 2021-07-08 03:05:43 -05:00