Closed ggnaegi closed 8 months ago
@raman-m please, asap ;-)
we noticed that some resources were not being released.
were not being disposed!
HttpCompletionOption.ResponseHeadersRead
property
I cannot get how does the property influence to disposing internal resources? If Yes then .NET framework has bugs... I cannot believe in that. More realistic scenario is...Ocelot with DI has hidden services which consumes and produces and behaves badly.
I'm not going to approve till Raynald's report if he provides some tests in prod.
@RaynaldM FYI We need your report and approve here.
HttpCompletionOption.ResponseHeadersRead
propertyI cannot get how does the property influence to disposing internal resources? If Yes then .NET framework has bugs... I cannot believe in that. More realistic scenario is...Ocelot with DI has hidden services which consumes and produces and behaves badly.
As soon as you decide to handle the stream yourself, then you are responsible of releasing it. It's logical no?
I'm not going to approve till Raynald's report if he provides some tests in prod.
@RaynaldM FYI We need your report and approve here.
@raman-m Raynald has tested a version without these specific changes
we noticed that some resources were not being released.
were not being disposed!
freed willy
I need Ray's input here... There is no problem to revert. The release is still active. This fix is a part of the Nov'23 milestone.
I need Ray's input here... There is no problem to revert. The release is still active. This fix is a part of the Nov'23 milestone.
I won't be able to validate these last changes in prod until January 3 or 4.
@RaynaldM 🆗 In this case, it is better to wait new NuGet packs of Nov'23 release and deploy them and test... So, Dec'23 version will not be ready on January 3...
Follows up #1724
1724
After testing the new http message invoker pool on a test environment, we noticed that some resources were not being released. After further checks, we realised that some streams were not being closed correctly.
This doesn't appear in the application with the standard http client, but I made a mistake by adding the
HttpCompletionOption.ResponseHeadersRead
property when calling the SendAsync method, which could potentially cause the same problems as with the new message invoker pool.A revert should therefore be performed for the time being, and this problem will be addressed in the new message invoker pool.
🙈 🙉 🙊
Proposed Changes
HttpClientWrapper
keeping the full buffering for now. Usage of the new option is out of scope and hazardous!!!