[release/6.0] Respect the Keep-Alive response header on HTTP/1.0 (#73245)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Fri, 12 Aug 2022 19:37:18 +0000 (21:37 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Aug 2022 19:37:18 +0000 (12:37 -0700)
commitdeebaeadfc1c7bf3d3052f92320e015ecc9397c5
tree8daa88e5f7fd69cb503ed956d14d0feb4fb4dcc2
parent0f6284e4709cb2be7a89a50ee41bf9c83831aec5
[release/6.0] Respect the Keep-Alive response header on HTTP/1.0 (#73245)

* Respect the Keep-Alive response header on HTTP/1.0 (#73020)

* Respect the Keep-Alive response header on HTTP/1.0

* Remove TimeoutOffset

* Update Trace message

* Update tests

* Adjust test timeouts

* Respect the Keep-Alive response header on HTTP/1.1 as well

* Add some more comments

* Account for HeaderDescriptor changes in 7.0
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.Http1KeepAlive.cs [new file with mode: 0644]
src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj