diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-02-23 21:02:56 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-03-19 17:04:07 +0100 |
commit | 755196a8c14e435816b633a62158b4868f784338 (patch) | |
tree | b1582dd9171a0dcafa394bbef0863a485c44e92d /lib/state.c | |
parent | b6c6e148b542a3ac3b0c407708fbc86e884d4f82 (diff) | |
download | gnutls-tmp-improve-session-resumption.tar.gz |
Improved estimation of wait in gnutls_session_get_data2tmp-improve-session-resumption
Previously we would wait an arbitrary value of 50ms for the
server to send session tickets. This change makes the client
wait for the estimated single trip time + 60 ms for the server
to calculate the session tickets. This improves the chance
to obtain tickets from internet servers during the call of
gnutls_session_get_data2().
Resolves: #706
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/state.c')
-rw-r--r-- | lib/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/state.c b/lib/state.c index 5a6991dfc8..db3262d52c 100644 --- a/lib/state.c +++ b/lib/state.c @@ -415,8 +415,8 @@ void _gnutls_handshake_internal_state_clear(gnutls_session_t session) _gnutls_epoch_gc(session); - session->internals.handshake_endtime.tv_sec = 0; - session->internals.handshake_endtime.tv_nsec = 0; + session->internals.handshake_abs_timeout.tv_sec = 0; + session->internals.handshake_abs_timeout.tv_nsec = 0; session->internals.handshake_in_progress = 0; session->internals.tfo.connect_addrlen = 0; |