network: add timeout for client connections

Somtimes client connetions will not close therfore add a timeout. Add a
new timer that checks every 5s if we did not receive anything from a
client for (default) 60s. Can be configured via client_timeout.

Code is based on the work of ptpt52.

Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Nick Hainke 2022-07-20 13:30:00 +02:00
parent e596ff1317
commit eba03547a5
8 changed files with 50 additions and 0 deletions

View file

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