System.Net.Http.HttpConnectionPool.CleanCacheAndDisposeIfUnused() disposing http connection #1478
Unanswered
eyagovbusiness
asked this question in
Support
Replies: 1 comment 3 replies
-
I'm more or less curious how things are wired up (is this project OSS?), because the library isn't really designed to be used in conjunction with ASP.NET (we implore you to use the generic host for runtime coddling) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using your library in a ASP.NET and after running few minutes the Api, every single exceptions are thrown about trying to access disposed object. I was digging a bit into the Strack trace and the parallel stacks and I found in System.Net.Http.HttpConnectionPool.CleanCacheAndDisposeIfUnused() the HttpConnection(HttpConnectionPool https://discord.com:443) is being disposed. May you take a look into this?
Here the object is disposed.
Here the exception is thrown.
After this my program increases the RAM usage by 40 MB indefinitely, which matches the read buffer size of the disposed HttpConnection, so it looks also like the Garbage Collector is not cleaning this.
I can provide more info if needed :)
Beta Was this translation helpful? Give feedback.
All reactions