Commit f63e440
http2: make HTTP2ServerResponse more streams compliant
HTTP2ServerResponse.write would behave differently than
both http1 and streams. This PR makes it more compliant
with stream.Writable behaviour.
Backport-PR-URL: #31444
PR-URL: #30964
Refs: #29529
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 02d7283 commit f63e440Copy full SHA for f63e440
File tree
Expand file treeCollapse file tree
2 files changed
+74
-40
lines changedOpen diff view settings
Filter options
- lib/internal/http2
- test/parallel
Expand file treeCollapse file tree
2 files changed
+74
-40
lines changedOpen diff view settings
Collapse file
lib/internal/http2/compat.js
Copy file name to clipboardExpand all lines: lib/internal/http2/compat.js+21-8Lines changed: 21 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
| 44 | + |
44 | 45 | |
45 | 46 | |
46 | 47 | |
| ||
439 | 440 | |
440 | 441 | |
441 | 442 | |
| 443 | + |
442 | 444 | |
443 | 445 | |
444 | 446 | |
| ||
649 | 651 | |
650 | 652 | |
651 | 653 | |
| 654 | + |
| 655 | + |
652 | 656 | |
653 | 657 | |
654 | 658 | |
655 | 659 | |
656 | 660 | |
657 | | - |
658 | | - |
| 661 | + |
| 662 | + |
| 663 | + |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
| 668 | + |
| 669 | + |
| 670 | + |
659 | 671 | |
660 | 672 | |
661 | | - |
662 | | - |
663 | | - |
| 673 | + |
| 674 | + |
664 | 675 | |
665 | 676 | |
666 | 677 | |
667 | 678 | |
668 | | - |
| 679 | + |
669 | 680 | |
670 | 681 | |
671 | 682 | |
| ||
712 | 723 | |
713 | 724 | |
714 | 725 | |
715 | | - |
| 726 | + |
716 | 727 | |
| 728 | + |
| 729 | + |
717 | 730 | |
718 | 731 | |
719 | 732 | |
|
Collapse file
test/parallel/test-http2-compat-serverresponse-write.js
Copy file name to clipboardExpand all lines: test/parallel/test-http2-compat-serverresponse-write.js+53-32Lines changed: 53 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | 6 | |
8 | 7 | |
9 | 8 | |
10 | 9 | |
11 | 10 | |
12 | 11 | |
13 | 12 | |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
25 | 25 | |
26 | | - |
27 | 26 | |
28 | | - |
29 | | - |
30 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
31 | 30 | |
32 | | - |
33 | | - |
| 31 | + |
| 32 | + |
34 | 33 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
| 34 | + |
| 35 | + |
| 36 | + |
44 | 37 | |
45 | | - |
46 | | - |
| 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 | + |
47 | 63 | |
48 | | - |
49 | | - |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
50 | 71 | |
51 | 72 | |
52 | | - |
| 73 | + |
0 commit comments