Skip to content

Auto-port 5.0: Fix ResumptionController wrapping#16818

Merged
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16815-to-5.0
May 18, 2026
Merged

Auto-port 5.0: Fix ResumptionController wrapping#16818
normanmaurer merged 1 commit into
5.0from
auto-port-pr-16815-to-5.0

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Auto-port of #16815 to 5.0
Cherry-picked commit: c328ba2


Motivation:
ReferenceCountedOpenSslContext did not propagate the wrapped trust manager from the resumption controller. With poorly implemented ResumableX509ExtendedTrustManager instances, this can waste a few resources by re-validating initial handshakes as if they are also a resumed session.

Modification:
Change the ReferenceCountedOpenSslContext to ensure that the result of ResumptionController.wrapIfNeeded is passed through to later wrapping steps, if any.

Result:
No more unnecessary double-validation for resumable trust managers.

Motivation:
ReferenceCountedOpenSslContext did not propagate the wrapped trust
manager from the resumption controller. With poorly implemented
ResumableX509ExtendedTrustManager instances, this can waste a few
resources by re-validating initial handshakes as if they are _also_ a
resumed session.

Modification:
Change the ReferenceCountedOpenSslContext to ensure that the result of
ResumptionController.wrapIfNeeded is passed through to later wrapping
steps, if any.

Result:
No more unnecessary double-validation for resumable trust managers.

(cherry picked from commit c328ba2)
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone May 18, 2026
@normanmaurer normanmaurer merged commit fa9c616 into 5.0 May 18, 2026
12 of 13 checks passed
@normanmaurer normanmaurer deleted the auto-port-pr-16815-to-5.0 branch May 18, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants