Propagate abort exceptions from CreditManager.Dispose (dotnet/corefx#39520)
authorStephen Toub <stoub@microsoft.com>
Tue, 16 Jul 2019 11:07:22 +0000 (07:07 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2019 11:07:22 +0000 (07:07 -0400)
commit01d9b32ee339152955f8b6fd1dd918136cdf0f28
tree92155ddaf0111c5a21ae477b5b2a2558f97f11da
parent31f1b64b65d80e315ec53ff5242b5c2908d4f592
Propagate abort exceptions from CreditManager.Dispose (dotnet/corefx#39520)

Currently, if an abort occurs, it disposes of credit managers, and if there's a waiter on that credit manager, that waiter propagates an ObjectDisposedException.  It should instead propagate whatever exception resulted from the abort.

Commit migrated from https://github.com/dotnet/corefx/commit/3c71b23c676c3538b33f4ae653cf6f85de77e44d
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/CreditManager.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