From 067c0ec30759ad08e2e53610bc5b46a878ce2643 Mon Sep 17 00:00:00 2001 From: vitek-karas Date: Tue, 17 Aug 2021 07:26:32 -0700 Subject: [PATCH] Remove workaroudn for linker issue in Http3RequestStream Part of the linker issue https://github.com/mono/linker/issues/2181 has been fixed in https://github.com/mono/linker/pull/2205. This part was the one affecting Http3RequestStream. This change simple reverts the workaround since it's not needed anymore. --- .../Net/Http/SocketsHttpHandler/Http3RequestStream.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs index aa5f7541ba841b..2f9a2b5ac17dc0 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs @@ -127,13 +127,6 @@ public async Task SendAsync(CancellationToken cancellationT try { - // Works around linker issue where it tries to eliminate QuicStreamAbortedException - // https://github.com/dotnet/runtime/issues/57010 - #if TARGET_MOBILE - if (string.Empty.Length > 0) - throw new QuicStreamAbortedException("", 0); - #endif - BufferHeaders(_request); // If using Expect 100 Continue, setup a TCS to wait to send content until we get a response.