-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Http2LoopbackConnection properly handles stream termination #35100
Http2LoopbackConnection properly handles stream termination #35100
Conversation
Tagging subscribers to this area: @dotnet/ncl |
EnableUncryptedHttp2(socketsHttpHandler); | ||
} | ||
|
||
#if !NETFRAMEWORK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this? Should we fix either PlatformDetection or the capability Instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SocketsHttpHandler
type is not available on the full .Net Framework, so conditional compilation seems to be the only way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So why type it as SocketsHttpHandler
rather than object
, as the other functions this is called from and it's calling are doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to distinct it from the other overload taking HttpClientHandler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, I could have made it object
, but think an explicit type is more convenient.
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR adds an optional stream termination handling to
Http2LoopbackConnection.ReadBodyAsync
and fixesHttpClient
construction missing theSocketHttpHandler
created in the test.Fixes #31220