Commit e9e86e1
http2: support non-empty DATA frame with END_STREAM flag
Adds support for reading from a stream where the final frame is a
non-empty DATA frame with the END_STREAM flag set, instead of hanging
waiting for another frame.
Fixes: #31309
Refs: https://nghttp2.org/documentation/types.html#c.nghttp2_on_data_chunk_recv_callback
PR-URL: #33875
Backport-PR-URL: #34857
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 751820b commit e9e86e1Copy full SHA for e9e86e1
File tree
Expand file treeCollapse file tree
3 files changed
+111
-23
lines changedOpen diff view settings
Filter options
- src
- test/parallel
Expand file treeCollapse file tree
3 files changed
+111
-23
lines changedOpen diff view settings
Collapse file
+7-6Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
882 | 882 | |
883 | 883 | |
884 | 884 | |
885 | | - |
| 885 | + |
886 | 886 | |
887 | 887 | |
888 | 888 | |
| ||
903 | 903 | |
904 | 904 | |
905 | 905 | |
906 | | - |
907 | | - |
908 | | - |
909 | | - |
910 | | - |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
911 | 911 | |
912 | 912 | |
913 | 913 | |
| ||
1241 | 1241 | |
1242 | 1242 | |
1243 | 1243 | |
| 1244 | + |
1244 | 1245 | |
1245 | 1246 | |
1246 | 1247 | |
|
Collapse file
test/parallel/test-http2-misbehaving-multiplex.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-misbehaving-multiplex.js+39-17Lines changed: 39 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
| 5 | + |
5 | 6 | |
6 | 7 | |
7 | 8 | |
| ||
13 | 14 | |
14 | 15 | |
15 | 16 | |
| 17 | + |
16 | 18 | |
17 | 19 | |
18 | 20 | |
19 | 21 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
26 | 47 | |
27 | 48 | |
28 | 49 | |
| ||
35 | 56 | |
36 | 57 | |
37 | 58 | |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
42 | 63 | |
43 | 64 | |
44 | 65 | |
45 | 66 | |
46 | 67 | |
47 | 68 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
52 | 74 | |
53 | 75 | |
54 | 76 | |
55 | | - |
56 | | - |
57 | | - |
| 77 | + |
| 78 | + |
| 79 | + |
58 | 80 | |
59 | 81 | |
60 | 82 | |
|
Collapse file
test/parallel/test-http2-pack-end-stream-flag.js
Copy file name to clipboard+65Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
0 commit comments