Commit fa2c2a7
committed
Stop treating RST_STREAM as EOF
In hq, it's important to know when the stream is reset as opposed to ending naturally. You need to know this so that you can acknowledge any potentially unread header blocks.
This changes the code so that resets cause subsequent reads to immediately fail with a recognizable error code. Receiving RST_STREAM stops further reading. It already caused existing data to be discarded. Finally, when a read fails on a reset stream, the state moves to the previously unused ResetRead state.1 parent b47c785 commit fa2c2a7
3 files changed
+19
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
408 | | - | |
| 408 | + | |
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
| |||
783 | 783 | | |
784 | 784 | | |
785 | 785 | | |
| 786 | + | |
786 | 787 | | |
787 | | - | |
| 788 | + | |
788 | 789 | | |
789 | | - | |
| 790 | + | |
790 | 791 | | |
791 | 792 | | |
792 | 793 | | |
| |||
801 | 802 | | |
802 | 803 | | |
803 | 804 | | |
| 805 | + | |
804 | 806 | | |
805 | 807 | | |
806 | | - | |
| 808 | + | |
807 | 809 | | |
808 | | - | |
| 810 | + | |
809 | 811 | | |
810 | 812 | | |
811 | 813 | | |
| |||
839 | 841 | | |
840 | 842 | | |
841 | 843 | | |
| 844 | + | |
842 | 845 | | |
843 | | - | |
| 846 | + | |
844 | 847 | | |
845 | | - | |
| 848 | + | |
846 | 849 | | |
847 | 850 | | |
848 | 851 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
| |||
0 commit comments