mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Implemented Idle timeout.
When set, a client that does not have any non-control traffic for that period is getting disconnected.
This commit is contained in:
@@ -150,6 +150,9 @@ typedef struct worker_st {
|
||||
/* for dead peer detection */
|
||||
time_t last_msg_udp;
|
||||
time_t last_msg_tcp;
|
||||
|
||||
time_t last_nc_msg; /* last message that wasn't control, on any channel */
|
||||
|
||||
time_t last_periodic_check;
|
||||
|
||||
/* set after authentication */
|
||||
|
||||
Reference in New Issue
Block a user