You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We analyzed memory dump from one of our testers which was showing excessive memory usage. The memory profiler showed us this:
Apparently the certificate validation callback in System.Net.Http request captures the HttpRequestMessage in a closure when establishing SSL connections:
Description
We analyzed memory dump from one of our testers which was showing excessive memory usage. The memory profiler showed us this:
Apparently the certificate validation callback in System.Net.Http request captures the
HttpRequestMessage
in a closure when establishing SSL connections:runtime/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs
Lines 135 to 139 in d0e2281
In our case that happened to hold close to 70Mb of data from that particular request.
Configuration
.NET 3.1.200 (but the same code is present in master as of d0e2281)
Windows x64
Regression?
It likely is regression with
SocketsHttpHandler
when compared to the older WinHTTP handler.The text was updated successfully, but these errors were encountered: