Commit 0ce699c
http2: stop reading from socket if writes are in progress
If a write to the underlying socket finishes asynchronously, that
means that we cannot write any more data at that point without waiting
for it to finish. If this happens, we should also not be producing any
more input.
This is part of mitigating CVE-2019-9511/CVE-2019-9517.
Backport-PR-URL: #29123
PR-URL: #29122
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 17357d3 commit 0ce699c
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1574 | 1574 | | |
1575 | 1575 | | |
1576 | 1576 | | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1577 | 1580 | | |
1578 | 1581 | | |
1579 | 1582 | | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1580 | 1589 | | |
1581 | 1590 | | |
1582 | 1591 | | |
| |||
1616 | 1625 | | |
1617 | 1626 | | |
1618 | 1627 | | |
| 1628 | + | |
1619 | 1629 | | |
1620 | 1630 | | |
1621 | | - | |
| 1631 | + | |
| 1632 | + | |
1622 | 1633 | | |
| 1634 | + | |
1623 | 1635 | | |
1624 | 1636 | | |
1625 | 1637 | | |
| |||
1746 | 1758 | | |
1747 | 1759 | | |
1748 | 1760 | | |
| 1761 | + | |
| 1762 | + | |
1749 | 1763 | | |
1750 | 1764 | | |
| 1765 | + | |
1751 | 1766 | | |
1752 | 1767 | | |
1753 | 1768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
| |||
0 commit comments