Improve handling of HTTP/2 frames received on closed stream (dotnet/corefx#34629)
authorMax Kerr <richard.kerr@microsoft.com>
Wed, 30 Jan 2019 21:40:28 +0000 (13:40 -0800)
committerGitHub <noreply@github.com>
Wed, 30 Jan 2019 21:40:28 +0000 (13:40 -0800)
commitb06f23719164fb4320f261043da5314798d55511
tree0927ea69bae49dc5b2a783a82b8a01bb82ff2898
parentbd138fa8e2c77e1296d60c9a7083c8fed63b0767
Improve handling of HTTP/2 frames received on closed stream (dotnet/corefx#34629)

* Basic support for GoAway frames.

* Review feedback.

* Remove go-away frame handling, add testing to ensure that the loopback server closes the connection instead.

* Remove comma.

* Change error code to reflect the actual failure mode.

* Correct swapped error codes.

Commit migrated from https://github.com/dotnet/corefx/commit/47f6404357832466585f06d5c9ee07ed2f7a27a4
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.Http2.cs