Avoid unobserved ReadAheadTask exceptions in HttpConnection (#80214)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Wed, 1 Feb 2023 16:12:58 +0000 (08:12 -0800)
committerGitHub <noreply@github.com>
Wed, 1 Feb 2023 16:12:58 +0000 (08:12 -0800)
commit120b7215c9d029fccee94f46864494d79074a0eb
tree913601845ca1ac3fdd1fb85f8a52d3db04566aa2
parent842ec4aaa723daaf2ce5d6d8931d09773ae55831
Avoid unobserved ReadAheadTask exceptions in HttpConnection (#80214)

* Rework ReadAheadTask impl in HttpConnection

* Handle sync exceptions in PrepareForReuse

* Split proactive EOF reactions out of the PR

* Add a few comments

* Remove the now-unnecessary ExecutionContext.IsFlowSuppressed dance

* PR feedback
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs