network: ping pong keepalive for tcp connections

To make the tcp connections keepalive and better handle the timeout
of connections

con_timeout indicate the connection timeout and it is configurable

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
Chen Minqiang 2022-07-21 06:03:58 +08:00 committed by Nick Hainke
parent eba03547a5
commit 47e98efed6
8 changed files with 136 additions and 30 deletions

View file

@ -17,7 +17,7 @@ config hostapd
option hostapd_dir '/var/run/hostapd'
config times
option client_timeout '60'
option con_timeout '60'
option update_client '10'
option remove_client '15'
option remove_probe '30'