Commit 7202859
authored
net: do not treat
Setting the `maxConnections` to 0 should result in no connection.
Instead, it was treated as if the option was not there.
PR-URL: #48276
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>server.maxConnections=0 as Infinity
1 parent b38bc9f commit 7202859Copy full SHA for 7202859
File tree
Expand file treeCollapse file tree
5 files changed
+36
-7
lines changedOpen diff view settings
Filter options
- doc/api
- lib
- internal/cluster
- test/parallel
Expand file treeCollapse file tree
5 files changed
+36
-7
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
565 | 565 | |
566 | 566 | |
567 | 567 | |
| 568 | + |
| 569 | + |
| 570 | + |
| 571 | + |
| 572 | + |
568 | 573 | |
569 | 574 | |
570 | 575 | |
|
Collapse file
lib/internal/cluster/child.js
Copy file name to clipboardExpand all lines: lib/internal/cluster/child.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
233 | 233 | |
234 | 234 | |
235 | 235 | |
236 | | - |
| 236 | + |
237 | 237 | |
238 | 238 | |
239 | 239 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2062 | 2062 | |
2063 | 2063 | |
2064 | 2064 | |
2065 | | - |
| 2065 | + |
2066 | 2066 | |
2067 | 2067 | |
2068 | 2068 | |
|
Collapse file
test/parallel/test-cluster-net-server-drop-connection.js
Copy file name to clipboardExpand all lines: test/parallel/test-cluster-net-server-drop-connection.js+14-5Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
13 | | - |
14 | | - |
| 13 | + |
| 14 | + |
| 15 | + |
15 | 16 | |
16 | 17 | |
| 18 | + |
| 19 | + |
17 | 20 | |
18 | 21 | |
19 | | - |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | 25 | |
23 | 26 | |
24 | 27 | |
25 | 28 | |
26 | 29 | |
27 | | - |
| 30 | + |
28 | 31 | |
29 | 32 | |
30 | 33 | |
31 | | - |
| 34 | + |
| 35 | + |
32 | 36 | |
33 | 37 | |
34 | 38 | |
| ||
38 | 42 | |
39 | 43 | |
40 | 44 | |
| 45 | + |
41 | 46 | |
42 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
43 | 52 | |
44 | 53 | |
45 | 54 | |
|
Collapse file
test/parallel/test-net-server-drop-connections.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-server-drop-connections.js+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
10 | 11 | |
| 12 | + |
11 | 13 | |
12 | 14 | |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
13 | 24 | |
14 | 25 | |
15 | 26 | |
| ||
20 | 31 | |
21 | 32 | |
22 | 33 | |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
23 | 38 | |
24 | 39 | |
25 | 40 | |
|
0 commit comments