Commit e16ef0f
committed
Fixing channel edge cases
The channel_disconnection test was flaky, and it was due to two separate
issues. First, when sending to a channel with the callback disconnected
while the future hadn't been disconnected fully yet, the send would
still be allowed rather than being reported as disconnected despite
never being able to be received. Second, using connected as a
distinction of whether the channel polling future should be enqueued was
not correct, as connected was being checked as to whether to poll for
notifications.1 parent dd1a1cc commit e16ef0f
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
399 | 403 | | |
400 | 404 | | |
401 | 405 | | |
| |||
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
482 | 490 | | |
483 | 491 | | |
484 | 492 | | |
| |||
693 | 701 | | |
694 | 702 | | |
695 | 703 | | |
| 704 | + | |
696 | 705 | | |
697 | 706 | | |
698 | 707 | | |
| |||
762 | 771 | | |
763 | 772 | | |
764 | 773 | | |
765 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
766 | 777 | | |
767 | 778 | | |
768 | 779 | | |
| |||
0 commit comments