Skip to content

Commit 5736b6e

Browse files
authored
Remove assert from Http3Connection.SendAsync (#74348) (#74484)
1 parent dc12d53 commit 5736b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, lon
240240
catch (QuicException ex) when (ex.QuicError == QuicError.OperationAborted)
241241
{
242242
// This will happen if we aborted _connection somewhere and we have pending OpenOutboundStreamAsync call.
243-
Debug.Assert(_abortException is not null);
243+
// note that _abortException may be null if we closed the connection in response to a GOAWAY frame
244244
throw new HttpRequestException(SR.net_http_client_execution_error, _abortException, RequestRetryType.RetryOnConnectionFailure);
245245
}
246246
finally

0 commit comments

Comments
 (0)