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

@ -2831,6 +2831,11 @@ static int ssl_write_server_hello_done( 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 );