From 08aac00fa12ccf50d625ba1090ac01f91945d4bc Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Fri, 18 Jan 2019 15:21:17 +0100 Subject: [PATCH] add explanation why 2 tickets are sent --- tlslite/handshakesettings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tlslite/handshakesettings.py b/tlslite/handshakesettings.py index 21ce7698..a8cbd369 100644 --- a/tlslite/handshakesettings.py +++ b/tlslite/handshakesettings.py @@ -260,6 +260,8 @@ def _init_misc_extensions(self): self.ticketCipher = "aes256gcm" self.ticketLifetime = 24 * 60 * 60 self.max_early_data = 2 ** 14 + 16 # full record + tag + # send two tickets so that client can quickly ramp up number of + # resumed connections (as tickets are single-use in TLS 1.3 self.ticket_count = 2 self.record_size_limit = 2**14 + 1 # TLS 1.3 includes content type