Skip to content

Commit

Permalink
add explanation why 2 tickets are sent
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Jan 18, 2019
1 parent ff1178f commit 08aac00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tlslite/handshakesettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 08aac00

Please sign in to comment.