Retry on GOAWAY (dotnet/corefx#39127)
authorKrzysztof Wicher <mordotymoja@gmail.com>
Sat, 13 Jul 2019 04:07:20 +0000 (21:07 -0700)
committerGitHub <noreply@github.com>
Sat, 13 Jul 2019 04:07:20 +0000 (21:07 -0700)
commit03a36223e97c53b3d5dca67bd79de1e8bd88663d
tree2b5c949bf4d6770ad06ecd5f923d540c76fe2d5e
parent553e96e9c5e6460c5abfb1dd17a3bc27be5a7f9a
Retry on GOAWAY (dotnet/corefx#39127)

* Retry on GOAWAY

* send correct GOAWAY on retried connection, update comment

* Harden against flakiness

* Fix: Connection refused error is different on Debian

* apply feedback

* Make partial body/received headers case deterministic, pass error code on REFUSED_STREAM

* apply latest feedback

Commit migrated from https://github.com/dotnet/corefx/commit/1841042b99062de13dc80098cede9413be569238
src/libraries/Common/tests/System/Net/Http/Http2LoopbackConnection.cs
src/libraries/Common/tests/System/Net/Http/Http2LoopbackServer.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestException.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/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/Watchdog.cs [new file with mode: 0644]