Commit fd2d71e
Fix StreamClientSessionTransport swallowing caller-triggered cancellation
When the caller's CancellationToken triggers an OperationCanceledException
during a pipe write, re-throw it instead of wrapping it in IOException.
This ensures callers get the expected OperationCanceledException when they
cancel their own token.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 27badfe commit fd2d71e
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
0 commit comments