Commit 2c2e43d
Add 5-second timeout when reading error response body
Prevents hanging in edge cases where server sends error response but
doesn't end the request. Linked CancellationTokenSource ensures the
original cancellation token is still honored.
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent c3d93aa commit 2c2e43d
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
32 | | - | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments