Commit b2fb1d7
http2: fix end without read
Adjust http2 behaviour to allow ending a stream even after some
data comes in (when the user has no intention of reading that
data). Also correctly end a stream when trailers are present.
PR-URL: #20621
Fixes: #20060
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>1 parent 9e432ca commit b2fb1d7Copy full SHA for b2fb1d7
File tree
Expand file treeCollapse file tree
4 files changed
+66
-15
lines changedOpen diff view settings
Filter options
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
4 files changed
+66
-15
lines changedOpen diff view settings
Collapse file
lib/internal/http2/compat.js
Copy file name to clipboardExpand all lines: lib/internal/http2/compat.js+6-4Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
260 | 260 | |
261 | 261 | |
262 | 262 | |
263 | | - |
264 | | - |
265 | 263 | |
266 | 264 | |
267 | 265 | |
| ||
328 | 326 | |
329 | 327 | |
330 | 328 | |
331 | | - |
332 | | - |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
333 | 335 | |
334 | 336 | |
335 | 337 | |
|
Collapse file
+7-5Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
349 | 349 | |
350 | 350 | |
351 | 351 | |
352 | | - |
353 | | - |
354 | | - |
355 | | - |
356 | | - |
| 352 | + |
| 353 | + |
| 354 | + |
| 355 | + |
| 356 | + |
357 | 357 | |
358 | 358 | |
359 | 359 | |
| ||
1795 | 1795 | |
1796 | 1796 | |
1797 | 1797 | |
| 1798 | + |
| 1799 | + |
1798 | 1800 | |
1799 | 1801 | |
1800 | 1802 | |
|
Collapse file
test/parallel/test-http2-client-upload-reject.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-client-upload-reject.js+9-6Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
29 | 32 | |
30 | 33 | |
31 | 34 | |
|
Collapse file
test/parallel/test-http2-compat-client-upload-reject.js
Copy file name to clipboard+44Lines changed: 44 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 | + |
0 commit comments