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:
Nikos Mavrogiannopoulos
2016-04-19 14:16:51 +02:00
parent 51f3c7b1eb
commit b706ab7871

View File

@@ -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