-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
area-System.Net.Securitybugtenet-reliabilityReliability/stability related issue (stress, load problems, etc.)Reliability/stability related issue (stress, load problems, etc.)
Milestone
Description
Under specific condition, .NET 7 and 8 are leaking native memory during TLS handshake. The specific condition is:
- Server sends OCSP staple during TLS handshake (server running .NET 7+, or other stacks supporting OCSP)
- A client certificate is used and supplied via
LocalCertificateSelectionCallbackto SslStream:- This is the behavior for
HttpClientconfigured withHttpClientHandler(the default handler) - Alternative ways do not have the problem (
SslClientAuthenticationOptions.ClientCertificatesCollectionorSslClientAuthenticationOptions.ClientCertificateContext)
- This is the behavior for
- Server performs renegotiation (or post-handshake client authentication)
Metadata
Metadata
Assignees
Labels
area-System.Net.Securitybugtenet-reliabilityReliability/stability related issue (stress, load problems, etc.)Reliability/stability related issue (stress, load problems, etc.)