Avoid issuing connection attempts for already cancelled requests (#66992) (#67226)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Wed, 13 Apr 2022 15:31:54 +0000 (17:31 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Apr 2022 15:31:54 +0000 (08:31 -0700)
commit9fb197d5b726c693f73b69b2116de258ce8513cf
tree926dba893b5ab834045dec81c3da4d7e7ef2201e
parent9c81d35b4eab0fb2f65cbb64fe7e820983e24d8f
Avoid issuing connection attempts for already cancelled requests (#66992) (#67226)

* Avoid issuing connection attempts for already canceled requests

* Cancelled => Canceled

* Guard SocketsHttpHandler tests under SocketsHttpHandler.IsSupported
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.Cancellation.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs