Commit ec52beb
committed
streams: Prevent RST_STREAM from being sent multiple times
Previously, RST_STREAM would be sent even when the stream closed by
state was in SEND_RST_STREAM. This fix instead checks which peer
closed the stream initially, and then updates the closed by value
from RECV_RST_STREAM to SEND_RST_STREAM after a RST_STREAM frame
has been sent on a previously reset stream.
Streams that have a closed by value of SEND_RST_STREAM now ignore
all frames.1 parent 6a03e70 commit ec52beb
3 files changed
+121
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
1493 | 1496 | | |
1494 | 1497 | | |
1495 | 1498 | | |
1496 | 1499 | | |
1497 | | - | |
1498 | | - | |
1499 | 1500 | | |
1500 | 1501 | | |
1501 | 1502 | | |
| |||
1506 | 1507 | | |
1507 | 1508 | | |
1508 | 1509 | | |
1509 | | - | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
1513 | 1522 | | |
1514 | 1523 | | |
1515 | 1524 | | |
| |||
1655 | 1664 | | |
1656 | 1665 | | |
1657 | 1666 | | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
1665 | 1693 | | |
1666 | 1694 | | |
1667 | 1695 | | |
| |||
1677 | 1705 | | |
1678 | 1706 | | |
1679 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
1680 | 1710 | | |
1681 | 1711 | | |
1682 | 1712 | | |
| |||
1685 | 1715 | | |
1686 | 1716 | | |
1687 | 1717 | | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
1688 | 1723 | | |
1689 | 1724 | | |
1690 | 1725 | | |
| |||
1962 | 1997 | | |
1963 | 1998 | | |
1964 | 1999 | | |
1965 | | - | |
| 2000 | + | |
1966 | 2001 | | |
1967 | 2002 | | |
1968 | 2003 | | |
| |||
1976 | 2011 | | |
1977 | 2012 | | |
1978 | 2013 | | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
1979 | 2022 | | |
1980 | 2023 | | |
1981 | 2024 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
339 | 362 | | |
340 | 363 | | |
341 | 364 | | |
| |||
1040 | 1063 | | |
1041 | 1064 | | |
1042 | 1065 | | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
1049 | 1073 | | |
1050 | | - | |
| 1074 | + | |
1051 | 1075 | | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1055 | 1079 | | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1060 | 1084 | | |
1061 | 1085 | | |
1062 | 1086 | | |
| |||
1068 | 1092 | | |
1069 | 1093 | | |
1070 | 1094 | | |
1071 | | - | |
1072 | | - | |
1073 | 1095 | | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1080 | 1106 | | |
1081 | | - | |
1082 | | - | |
| 1107 | + | |
| 1108 | + | |
1083 | 1109 | | |
1084 | 1110 | | |
1085 | 1111 | | |
| |||
0 commit comments