-
Notifications
You must be signed in to change notification settings - Fork 741
feat: expose the number of received TLS1.3 resumption tickets #2476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2476 +/- ##
=======================================
Coverage 95.33% 95.33%
=======================================
Files 97 97
Lines 21504 21518 +14
=======================================
+ Hits 20500 20514 +14
Misses 1004 1004 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems reasonable to me, thanks!
Benchmark resultsInstruction countsSignificant differencesClick to expand
Other differencesClick to expand
Wall-timeSignificant differencesClick to expand
Other differencesClick to expand
Additional informationCheckout details:
|
(Please squash your commits.) |
412a054
to
0d8fd4d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
0d8fd4d
to
2dfeb64
Compare
This adds a public function to get the count of TLS1.3 resumption tickets that were received in a client-side rustls session. Before, this information was not available outside of the session store. Downstream users may want to access this, though, to keep a connection open until tickets are received. When doing a 0RTT connection, it may happen that the application-side logic is done before the tickets are received. In that case, if expecting to do further 0rtt connections in the future, it may be beneficial to keep the connection open until the tickets are received. With this patch, this is possible without having to wrap or hack around the session store.
2dfeb64
to
5475803
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just a note on the use case -- there's no guarantee that a server will send tickets, nor when it will do so. So be cautious keeping a connection up indefinitely waiting for this to happen. But using this API to keep the connection open an extra few RTTs seems like a good idea.
This adds a public function to get the count of TLS1.3 resumption tickets that were received in a client-side rustls session.
Currently, this information is not available outside of the session store. Downstream users may want to access this, though, to keep a connection open until tickets are received. When doing a 0RTT connection, it may happen that the application-side logic is done before the tickets are received. In that case, if expecting to do further 0rtt connections in the future, it may be beneficial to keep the connection open until the tickets are received. With this patch, this is possible without having to wrap or hack around the session store.