Add EnableMultipleHttp2Connections property to HttpHandlerOptions#2126
Add EnableMultipleHttp2Connections property to HttpHandlerOptions#2126EngRajabi wants to merge 8 commits intoThreeMammals:developfrom
EnableMultipleHttp2Connections property to HttpHandlerOptions#2126Conversation
|
Thank you, Mohsen! Currently, there is a shortage of both unit and acceptance tests to begin the review process. We need to implement a genuine HTTP/2 + The Option acceptance test to assess the stability of Ocelot Core in this scenario. |
EnableMultipleHttp2Connections property to HttpHandlerOptions
|
It is not a high priority. |
| options.UseCookieContainer, useTracing, options.UseProxy, maxConnectionPerServer, pooledConnectionLifetime, | ||
| options.EnableMultipleHttp2Connections); |
There was a problem hiding this comment.
Certainly, extending the default advanced initialization constructor with all initialization values is beneficial. However, it's also worth considering the introduction of a copy constructor.
Having the copy-constructor we can write:
return new HttpHandlerOptions(options);There was a problem hiding this comment.
@raman-m
How to transfer the conditions of lines 21, 24 and 25? Line 21 uses ITracer
| { | ||
| public HttpHandlerOptions(bool allowAutoRedirect, bool useCookieContainer, bool useTracing, bool useProxy, | ||
| int maxConnectionsPerServer, TimeSpan pooledConnectionLifeTime) | ||
| int maxConnectionsPerServer, TimeSpan pooledConnectionLifeTime, bool enableMultipleHttp2Connections) |
| null, | ||
| null, | ||
| new HttpHandlerOptions(false, false, false, false, 0, TimeSpan.Zero), | ||
| new HttpHandlerOptions(false, false, false, false, 0, TimeSpan.Zero, false), |
There was a problem hiding this comment.
Why not to define default constructor with default initialization values including a value for EnableMultipleHttp2Connections which is false?
| .BDDfy(); | ||
| } | ||
|
|
||
| [Fact] |
There was a problem hiding this comment.
I did not understand what you mean
There was a problem hiding this comment.
I mean this
raman-m
left a comment
There was a problem hiding this comment.
TODO
- Fix code review issues
- Add unit tests
- Add acceptance tests
|
@RaynaldM, why did you approve the PR? It lacks new unit tests and doesn't include any acceptance tests. Additionally, the issues I raised during the code review remain unaddressed. |
d2d438c to
a8a150e
Compare
|
@raman-m I don't materially have the time to explore the PRs in depth, I'm content with a surface review, more on form than substance, and so my approval is on form. |
a8a150e to
3efc97c
Compare
908d84f to
0678e7a
Compare
|
Mohsen, |
|
@EngRajabi Dear author,
|
Hello dear friend. You have kept this merge so long that it is outdated. I don't have time to correct the changes. |
If you activate HTTP/2, it is better to activate the
SocketsHttpHandler.EnableMultipleHttp2Connectionsconfiguration as well, which gives good results.Docs