File tree 1 file changed +14
-0
lines changed
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,13 @@ private async Task SendSettingsAsync()
388
388
389
389
await _clientControl . WriteAsync ( _pool . Settings . Http3SettingsFrame , CancellationToken . None ) . ConfigureAwait ( false ) ;
390
390
}
391
+ catch ( QuicException ex ) when ( ex . QuicError == QuicError . ConnectionAborted )
392
+ {
393
+ Debug . Assert ( ex . ApplicationErrorCode . HasValue ) ;
394
+ Http3ErrorCode code = ( Http3ErrorCode ) ex . ApplicationErrorCode . Value ;
395
+
396
+ Abort ( HttpProtocolException . CreateHttp3ConnectionException ( code , SR . net_http_http3_connection_close ) ) ;
397
+ }
391
398
catch ( Exception ex )
392
399
{
393
400
Abort ( ex ) ;
@@ -577,6 +584,13 @@ private async Task ProcessServerStreamAsync(QuicStream stream)
577
584
{
578
585
// ignore the exception, we have already closed the connection
579
586
}
587
+ catch ( QuicException ex ) when ( ex . QuicError == QuicError . ConnectionAborted )
588
+ {
589
+ Debug . Assert ( ex . ApplicationErrorCode . HasValue ) ;
590
+ Http3ErrorCode code = ( Http3ErrorCode ) ex . ApplicationErrorCode . Value ;
591
+
592
+ Abort ( HttpProtocolException . CreateHttp3ConnectionException ( code , SR . net_http_http3_connection_close ) ) ;
593
+ }
580
594
catch ( Exception ex )
581
595
{
582
596
Abort ( ex ) ;
You can’t perform that action at this time.
0 commit comments