Commit fc7eeeb
fix: clear _continuation_expected before decode_body in failure branch
Moved the flag clear to before FailureResponse.decode_body() in
decode_continuation(). Previously if decode_body itself raised (e.g.,
truncated failure body), the flag stayed True alongside a poisoned
buffer. Now the flag is always cleared when the continuation sequence
is terminated, regardless of whether subsequent operations raise.
Closes #125
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 082454a commit fc7eeeb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | 305 | | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
0 commit comments