- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Possible Memory Leak in Async code #1506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This could be a fix:
|
I cloned the repo, made the above changes and tested it in my project. The leak was fixed. Any idea why the Repo I cloned is version 106.8.10 but the nuget version I have already in the project is 106.10.1? |
Is there a Pull Request for this fix? |
I did not create a Pull Request because the version number of the Repo I cloned was older than the release. |
@WayneHiller mind if I take a crack at it? Its effecting our production code. |
@mhornbacher Go for it. |
Ok, it's merged, @WayneHiller would you be able to check it against your test with the latest alpha nuget package? |
I have since changed the code to use HttpClient, I won't be able to test it. I did test the code above and the leak was fixed. |
@alexeyzimarev we deployed this beta package to our QA environment and validated that the memory leak is indeed fixed. |
@mhornbacher awesome, I will make a fix release soon for the stable package. |
Thank you! Should we close this issue? |
I believe I have discovered a memory leak in Http.Async.cs
The handle In the call to ThreadPool.RegisterWaitForSingleObject is not saved and handle.Unregister is never called.
https://docs.microsoft.com/en-us/dotnet/api/system.threading.threadpool.registerwaitforsingleobject?view=netcore-3.1
My ANTS Memory Profiler is showing the leak.
Specifications
The text was updated successfully, but these errors were encountered: