fix(SniHandler): Refactor hasSessionResumption to return detailed session resumption info

This commit is contained in:
2025-03-11 19:41:04 +00:00
parent b2a57ada5d
commit 124f8d48b7
3 changed files with 16 additions and 9 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## 2025-03-11 - 3.41.2 - fix(SniHandler)
Refactor hasSessionResumption to return detailed session resumption info
- Changed the return type of hasSessionResumption from boolean to an object with properties isResumption and hasSNI
- Updated early return conditions to return { isResumption: false, hasSNI: false } when buffer is too short or invalid
- Modified corresponding documentation to reflect the new return type
## 2025-03-11 - 3.41.1 - fix(SniHandler)
Improve TLS SNI session resumption handling: connections containing a session ticket are now only rejected when no SNI is present and allowSessionTicket is disabled. Updated return values and logging for clearer resumption detection.