improve error handling on failed Http/2 handshake (dotnet/corefx#37050)
authorTomas Weinfurt <tweinfurt@yahoo.com>
Fri, 3 May 2019 06:31:53 +0000 (23:31 -0700)
committerGitHub <noreply@github.com>
Fri, 3 May 2019 06:31:53 +0000 (23:31 -0700)
commitc5bf93e35c76d235ce066fe5b9e85df43c9a8567
tree1c8d696a3edab280ed3b34a7a19ad6a193d4cf0e
parentdcb8c42cc4d6be4a2eca945efc5f907465205298
improve error handling on failed Http/2 handshake (dotnet/corefx#37050)

* improve error handling on failed Http/2 handshake

* remove extra space

* add test for HTTP2 client talking to HTTP1 server.

* fix broken tests

* improve exception handling

* update exception handling

* ws update

* fix bad merge

* update test and changes from dotnet/corefx#37223

* use _abortException only if the stream is not aborted already

* fix IsAborted check

* updates to syncup with recent changes

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