Commit 9af809d
HttpTimeoutPolicy: Fixes aggressive 500ms first-attempt timeout in HttpTimeoutPolicyControlPlaneRetriableHotPath
Raises the first-attempt timeout for HttpTimeoutPolicyControlPlaneRetriableHotPath
from 500ms to 1s, aligning with the precedent set by HttpTimeoutPolicyForThinClient
(#5496) and HttpTimeoutPolicyForPartitionFailover (#5484).
The original 500ms value was too aggressive for .NET 10's HttpConnectionPool
behavior and any environment with moderate network latency, producing spurious
TaskCanceledExceptions that the SDK then retried successfully but at the cost
of wasted work and noisy customer telemetry.
The 5s and 65s tail attempts are preserved to keep the existing retry budget
for genuinely slow control-plane operations.
Fixes #5642
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0d5f925 commit 9af809d
2 files changed
Lines changed: 7 additions & 2 deletions
File tree
- Microsoft.Azure.Cosmos
- src/HttpClient
- tests/Microsoft.Azure.Cosmos.Tests
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | | - | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments