Repository navigation
Commit 2e298a3
test(okhttp): Wait until the reader is blocked before closing the body (#6604)
The concurrent close test signaled right after the reader got the first chunk, before it
entered the next read(). When close() landed in that gap, the reader's next read() threw
Okio's "closed" IllegalStateException, the thread died, and the test timed out waiting for
it. ParkingSource now signals right before it blocks, so close() always lands while the
reader is inside read().
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>1 parent 3b6fa83 commit 2e298a3
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
| |||
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
263 | | - | |
264 | 267 | | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
268 | | - | |
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
275 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
| |||
0 commit comments