1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Count timeout per flight, not per message

This commit is contained in:
Manuel Pégourié-Gonnard
2014-09-29 15:29:48 +02:00
committed by Paul Bakker
parent db2858ce96
commit 7de3c9eecb
4 changed files with 49 additions and 9 deletions

View File

@ -759,6 +759,11 @@ static int ssl_write_client_hello( ssl_context *ssl )
ssl->state++;
#if defined(POLARSSL_SSL_PROTO_DTLS)
if( ssl->transport == SSL_TRANSPORT_DATAGRAM )
ssl_send_flight_completed( ssl );
#endif
if( ( ret = ssl_write_record( ssl ) ) != 0 )
{
SSL_DEBUG_RET( 1, "ssl_write_record", ret );