Commit ad1e948
committed
Ensure we call
In the previous commit, we moved the `send_data` `resume_read` flag
to also indicate that we should pause if its unset. This should
work as we mostly only set the flag when we're sending but may
cause us to fail to pause if we are blocked on gossip validation
but `awaiting_write_event` wasn't set as we had previously failed
to fully flush a buffer (which no longer implies read-pause).
Here we make this logic much more robust by ensuring we always make
at least one `send_data` call in `do_attempt_write_data` if we
need to pause read (or unpause read).send_data when we need to pause/unpause reads1 parent e1b7ff4 commit ad1e948
1 file changed
+20
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| |||
1440 | 1441 | | |
1441 | 1442 | | |
1442 | 1443 | | |
| 1444 | + | |
1443 | 1445 | | |
1444 | 1446 | | |
1445 | 1447 | | |
| |||
1500 | 1502 | | |
1501 | 1503 | | |
1502 | 1504 | | |
| 1505 | + | |
1503 | 1506 | | |
1504 | 1507 | | |
1505 | 1508 | | |
| |||
1535 | 1538 | | |
1536 | 1539 | | |
1537 | 1540 | | |
1538 | | - | |
| 1541 | + | |
1539 | 1542 | | |
1540 | | - | |
1541 | | - | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1542 | 1553 | | |
1543 | 1554 | | |
1544 | 1555 | | |
| |||
1606 | 1617 | | |
1607 | 1618 | | |
1608 | 1619 | | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1614 | 1624 | | |
1615 | 1625 | | |
1616 | 1626 | | |
1617 | 1627 | | |
1618 | 1628 | | |
| 1629 | + | |
1619 | 1630 | | |
1620 | 1631 | | |
1621 | 1632 | | |
1622 | | - | |
| 1633 | + | |
1623 | 1634 | | |
1624 | 1635 | | |
1625 | 1636 | | |
| |||
0 commit comments