mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Implement timeout back-off (fixed range for now)
This commit is contained in:
parent
ce8588c9ef
commit
0ac247fd88
2 changed files with 67 additions and 17 deletions
|
|
@ -261,6 +261,13 @@
|
|||
#define SSL_RETRANS_WAITING 2
|
||||
#define SSL_RETRANS_FINISHED 3
|
||||
|
||||
/*
|
||||
* Default range for DTLS retransmission timer value, in milliseconds.
|
||||
* RFC 6347 4.2.4.1 says from 1 second to 60 seconds.
|
||||
*/
|
||||
#define SSL_DTLS_TIMEOUT_DFL_MIN 1000
|
||||
#define SSL_DTLS_TIMEOUT_DFL_MAX 60000
|
||||
|
||||
/**
|
||||
* \name SECTION: Module settings
|
||||
*
|
||||
|
|
@ -652,6 +659,7 @@ struct _ssl_handshake_params
|
|||
|
||||
unsigned char *hs_msg; /*!< Reassembled handshake message */
|
||||
|
||||
uint32_t retransmit_timeout; /*!< Current value of timeout */
|
||||
unsigned char retransmit_state; /*!< Retransmission state */
|
||||
ssl_flight_item *flight; /*!< Current outgoing flight */
|
||||
ssl_flight_item *cur_msg; /*!< Current message in flight */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue