Commit 19cf4d9
authored
Fix Windows IPC race condition when using parallel checking (#21228)
Cancellation is asynchronous, so some data could be read after calling
`cancel()`. Rework `ready_to_read` to first cancel all operations and
then check for each if data is available.
See discussion in #21221 for more context.
I heavily relied on coding agent assist for this, but I did multiple
review iterations and refinements.1 parent 8e3c99a commit 19cf4d9
1 file changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
425 | 432 | | |
426 | | - | |
| 433 | + | |
427 | 434 | | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
428 | 450 | | |
429 | 451 | | |
430 | 452 | | |
431 | | - | |
432 | | - | |
433 | | - | |
| 453 | + | |
434 | 454 | | |
435 | 455 | | |
436 | 456 | | |
| |||
0 commit comments