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/handshake.h | |
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/handshake.h')
-rw-r--r-- | lib/handshake.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handshake.h b/lib/handshake.h index 2d56219591..f39b3a4571 100644 --- a/lib/handshake.h +++ b/lib/handshake.h @@ -115,7 +115,7 @@ int _gnutls13_handshake_hash_buffers_synth(gnutls_session_t session, /* return the remaining time in ms */ inline static int handshake_remaining_time(gnutls_session_t session) { - struct timespec *end = &session->internals.handshake_endtime; + struct timespec *end = &session->internals.handshake_abs_timeout; if (end->tv_sec || end->tv_nsec) { struct timespec now; |