Commit 24eaeed
http: fix socketOnWrap edge cases
Properly handle prependListener wrapping on http server
socket, in addition to on and addListener.
PR-URL: #27968
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 70b4854 commit 24eaeedCopy full SHA for 24eaeed
File tree
Expand file treeCollapse file tree
2 files changed
+37
-35
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+37
-35
lines changedOpen diff view settings
Collapse file
+17-14Lines changed: 17 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
407 | 407 | |
408 | 408 | |
409 | 409 | |
410 | | - |
411 | | - |
412 | | - |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
413 | 414 | |
414 | 415 | |
415 | 416 | |
| ||
757 | 758 | |
758 | 759 | |
759 | 760 | |
760 | | - |
761 | | - |
762 | | - |
763 | | - |
764 | | - |
765 | | - |
766 | | - |
767 | | - |
| 761 | + |
| 762 | + |
| 763 | + |
| 764 | + |
| 765 | + |
| 766 | + |
| 767 | + |
| 768 | + |
| 769 | + |
768 | 770 | |
769 | | - |
770 | | - |
| 771 | + |
| 772 | + |
771 | 773 | |
772 | | - |
| 774 | + |
| 775 | + |
773 | 776 | |
774 | 777 | |
775 | 778 | |
|
Collapse file
test/parallel/test-http-server-unconsume.js
Copy file name to clipboard+20-21Lines changed: 20 additions & 21 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
| 8 | + |
8 | 9 | |
9 | | - |
10 | | - |
11 | | - |
| 10 | + |
| 11 | + |
| 12 | + |
12 | 13 | |
13 | | - |
14 | | - |
15 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
16 | 17 | |
17 | | - |
18 | | - |
19 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
20 | 22 | |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
| 23 | + |
| 24 | + |
| 25 | + |
25 | 26 | |
26 | | - |
27 | | - |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
28 | 31 | |
29 | 32 | |
30 | 33 | |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
0 commit comments