follow up on duplex operation for HTTP/2 (dotnet/corefx#38226)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Sun, 23 Jun 2019 21:42:52 +0000 (14:42 -0700)
committerGitHub <noreply@github.com>
Sun, 23 Jun 2019 21:42:52 +0000 (14:42 -0700)
commitc333cd0ecb3ec35622a2fe72cebb9e1be768b008
tree12fa50eaa00ff5dce8757357e23c36cd5813af16
parent0f7d9d3fb62a5a28557a4675017946695e17b2cb
follow up on duplex operation for HTTP/2 (dotnet/corefx#38226)

* follow up on duplex operation

* updates

* add test for cancelation

* log responseHeadersTask if bodyTask fails first

* improve cancelation

* feedback from review

* update SendAsync_ConcurentSendReceive_Fail test

* feedback from review

* update SendSettingsAckAsync

* more HTTP/2 cancelation tests

* update test to accept any derivative from OperationCanceledException

* feedback from review

* roll-back changes in AcceptConnectionAsync

Commit migrated from https://github.com/dotnet/corefx/commit/cad5159981f518f455be3528d0ee8eca2e00742a
13 files changed:
src/libraries/Common/tests/System/Net/Http/GenericLoopbackServer.cs
src/libraries/Common/tests/System/Net/Http/Http2LoopbackConnection.cs
src/libraries/Common/tests/System/Net/Http/Http2LoopbackServer.cs
src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Connection.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Stream.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionBase.cs
src/libraries/System.Net.Http/tests/FunctionalTests/CustomContent.cs
src/libraries/System.Net.Http/tests/FunctionalTests/CustomContent.netcore.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Cancellation.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Http2.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.cs