Skip to content

Commit

Permalink
Remove workaroudn for linker issue in Http3RequestStream (dotnet#57571)
Browse files Browse the repository at this point in the history
Part of the linker issue dotnet/linker#2181 has been fixed in dotnet/linker#2205. This part was the one affecting Http3RequestStream.

This change simple reverts the workaround since it's not needed anymore.
  • Loading branch information
vitek-karas authored Aug 18, 2021
1 parent 4ae0669 commit b4d75a0
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,6 @@ public async Task<HttpResponseMessage> 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.
Expand Down

0 comments on commit b4d75a0

Please sign in to comment.