From 5977f65c6ec314a7bd728d13a82bfcc1406c4514 Mon Sep 17 00:00:00 2001 From: Lilian Kasem Date: Wed, 8 Jan 2025 14:58:24 -0800 Subject: [PATCH] pass ct in ctor --- src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs b/src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs index 061ee64868..8659a0403b 100644 --- a/src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs +++ b/src/WebJobs.Script.Grpc/Server/RetryProxyHandler.cs @@ -40,7 +40,7 @@ protected override async Task SendAsync(HttpRequestMessage catch (TaskCanceledException) when (cancellationToken.IsCancellationRequested) { _logger.LogDebug("Request was canceled. Stopping retries."); - throw new OperationCanceledException(); + throw new OperationCanceledException(cancellationToken); } catch (HttpRequestException) when (attemptCount < MaxRetries) {