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
{{ message }}
Repository navigation
WinHttpRequestState memory leak when cancelling requests #17392
There is a memory leak of WinHttpRequestState (and related objects) when the outstanding http request is canceled prior to it completing with an HttpResponseMessage.
After analyzing this, the size of the WinHttpRequestState memory leaks are orders of magnitude smaller than the memory fragmentation caused by issues in the Kestrel server.
Activity
davidsh commentedon May 31, 2016
After analyzing this, the size of the WinHttpRequestState memory leaks are orders of magnitude smaller than the memory fragmentation caused by issues in the Kestrel server.
Moving to post RTM.
DavidObando commentedon May 31, 2016
@davidsh that's true as long as the cancellation token is freed.
davidsh commentedon May 31, 2016
I will submit a PR for RTM to fix just that. This issue, though, will cover the overall problem which still isn't 100% fixed.
davidsh commentedon May 31, 2016
Switching this issue to RTM for now until dotnet/corefx#8896 gets merged. Then the issue will move to post RTM to fix the remaining leaks.
karelz commentedon Feb 23, 2017
Check out more details in closed dupe dotnet/corefx#11674.
karelz commentedon Feb 23, 2017
Next step:
karelz commentedon Apr 18, 2017
Triage: The impact on 2.0 is expected to be low if any. The cost is high, moving to Future.
karelz commentedon May 19, 2018
Should be addressed in 2.1 with new default handler: SocketsHttpHandler, closing.