Skip to content

Commit b4d75a0

Browse files
authored
Remove workaroudn for linker issue in Http3RequestStream (#57571)
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.
1 parent 4ae0669 commit b4d75a0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3RequestStream.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,6 @@ public async Task<HttpResponseMessage> SendAsync(CancellationToken cancellationT
127127

128128
try
129129
{
130-
// Works around linker issue where it tries to eliminate QuicStreamAbortedException
131-
// https://github.com/dotnet/runtime/issues/57010
132-
#if TARGET_MOBILE
133-
if (string.Empty.Length > 0)
134-
throw new QuicStreamAbortedException("", 0);
135-
#endif
136-
137130
BufferHeaders(_request);
138131

139132
// If using Expect 100 Continue, setup a TCS to wait to send content until we get a response.

0 commit comments

Comments
 (0)