Commit 0308408
fix: Don't finish span prematurely on read(0)
Drop the `not rv` check from the read() wrapper's span-finishing
condition. read(0) legitimately returns b"" without consuming the body,
which would falsely trigger span completion. The fp and closed checks
are sufficient to detect when the body is fully consumed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bc404b6 commit 0308408
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | 217 | | |
219 | | - | |
220 | | - | |
| 218 | + | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
225 | | - | |
| 223 | + | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
| |||
0 commit comments