zephyr/subsys/net/lib/sockets
Robert Lubos a150380d65 net: tcp: Implement Keep-alive support
When a TCP connection is established, if there is no data exchange
between the two parties within the set time, the side that enables
TCP Keep-alive will send a TCP probe packet with the same sequence
number as the previous TCP packet. This TCP probe packet is an empty
ACK packet (the specification recommends that it should not contain
any data, but can also contain 1 nonsense byte, such as 0x00.). If
there is no response from the other side after several consecutive
probe packets are sent, it is determined that the tcp connection has
failed, and the connection is closed.

The keep-alive default parameters are aligned with Linux defaults.

Signed-off-by: Horse Ma <mawei@coltsmart.com>
Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2023-12-11 10:11:10 +01:00
..
CMakeLists.txt net: Fix CMakeLists 2023-11-21 08:48:04 +00:00
getaddrinfo.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
getnameinfo.c
Kconfig hostap: Move the relevant config options away from hostap 2023-10-26 09:48:47 +02:00
socket_dispatcher.c
socket_obj_core.c net: sockets: Add object core support to sockets 2023-10-24 11:11:30 +02:00
socket_offload.c
socketpair.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sockets_can.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
sockets_internal.h net: sockets: Add recvmsg() implementation 2023-11-27 19:58:47 +01:00
sockets_misc.c syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
sockets_net_mgmt.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
sockets_packet.c kernel: move syscall_handler.h to internal include directory 2023-11-03 11:46:52 +01:00
sockets_select.c syscall: rename z_user_ to k_usermode_ 2023-11-03 11:46:52 +01:00
sockets_tls.c net: sockets: tls: Set errno on TX waiting error 2023-11-21 08:46:45 +00:00
sockets.c net: tcp: Implement Keep-alive support 2023-12-11 10:11:10 +01:00