mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
main: reduce UDP_FD_RESEND_TIME to 3 seconds
This allows a client to reconnect the DTLS session as soon as even 3 seconds. This addresses issue with clients turning the wifi off and on again, not being able to reconnect with DTLS.
This commit is contained in:
@@ -675,7 +675,7 @@ void clear_lists(main_server_st *s)
|
||||
/* A UDP fd will not be forwarded to worker process before this number of
|
||||
* seconds has passed. That is to prevent a duplicate message messing the worker.
|
||||
*/
|
||||
#define UDP_FD_RESEND_TIME 60
|
||||
#define UDP_FD_RESEND_TIME 3
|
||||
|
||||
#define RECORD_PAYLOAD_POS 13
|
||||
#define HANDSHAKE_SESSION_ID_POS 46
|
||||
|
||||
Reference in New Issue
Block a user