Http2Connection: Wrap InvalidOperationExceptions (dotnet/corefx#39400)
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Fri, 12 Jul 2019 16:39:52 +0000 (17:39 +0100)
committerDavid Shulman <david.shulman@microsoft.com>
Fri, 12 Jul 2019 16:39:52 +0000 (09:39 -0700)
commit648f0316ba16451134ab0866ef633a3014d07e7e
tree9a283428f8665cfa04c8d4d127d5eba031d729d5
parent3d736a4982c18c5c53f12b262e01182fe62d36a1
Http2Connection: Wrap InvalidOperationExceptions (dotnet/corefx#39400)

* Http2Connection: Wrap InvalidOperationExceptions

To achieve parity with the v1.1 implementation. Fixes dotnet/corefx#39295

* do not shutdown connection on server side

* prevent disposal of client before server has established connection

Commit migrated from https://github.com/dotnet/corefx/commit/68e7999c846131bd8cd43899671fa6a4a7b5da53
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs
src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
src/libraries/System.Net.Http/tests/FunctionalTests/ThrowingContent.cs [new file with mode: 0644]