We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
InvokeWithCancellationAsync_TimeoutAndDisconnectDuringSend_ThrowsTimeoutException
1 parent ccc6653 commit 81f9d13Copy full SHA for 81f9d13
1 file changed
src/StreamJsonRpc/JsonRpc.cs
@@ -2341,6 +2341,10 @@ private JsonRpcError CreateCancellationResponse(JsonRpcRequest request)
2341
{
2342
throw new TimeoutException(Resources.FormatOutboundInvocationTimedOut(nameof(this.OutboundRequestTimeout)), ex);
2343
}
2344
+ catch (ConnectionLostException ex) when (timeoutCancellationSource?.IsCancellationRequested is true && !cancellationToken.IsCancellationRequested)
2345
+ {
2346
+ throw new TimeoutException(Resources.FormatOutboundInvocationTimedOut(nameof(this.OutboundRequestTimeout)), ex);
2347
+ }
2348
catch (OperationCanceledException ex) when (this.DisconnectedToken.IsCancellationRequested && !effectiveOutboundCancellationToken.IsCancellationRequested)
2349
2350
throw new ConnectionLostException(Resources.ConnectionDropped, ex);
0 commit comments