Commit 9151439
dns: support dns module in the snapshot
For the initial iteration, only the default resolver can be
serialized/deserialized. If `dns.setServers()` has been
called, we'll preserve the configured DNS servers in the snapshot.
We can consider exposing the serialization method if it becomes
necessary for user-land snapshots.
PR-URL: #44633
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent f8b2d7a commit 9151439Copy full SHA for 9151439
File tree
Expand file treeCollapse file tree
14 files changed
+474
-7
lines changedOpen diff view settings
Filter options
- lib/internal
- dns
- main
- src
- test
- common
- fixtures/snapshot
- internet
- parallel
Expand file treeCollapse file tree
14 files changed
+474
-7
lines changedOpen diff view settings
Collapse file
+65-2Lines changed: 65 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
| ||
35 | 36 | |
36 | 37 | |
37 | 38 | |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
38 | 45 | |
39 | 46 | |
40 | 47 | |
| ||
47 | 54 | |
48 | 55 | |
49 | 56 | |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
50 | 63 | |
51 | 64 | |
52 | 65 | |
53 | 66 | |
54 | 67 | |
55 | 68 | |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
56 | 78 | |
57 | 79 | |
58 | 80 | |
| ||
77 | 99 | |
78 | 100 | |
79 | 101 | |
80 | | - |
81 | 102 | |
82 | | - |
83 | 103 | |
84 | 104 | |
85 | 105 | |
| ||
118 | 138 | |
119 | 139 | |
120 | 140 | |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
121 | 146 | |
122 | 147 | |
123 | 148 | |
| ||
127 | 152 | |
128 | 153 | |
129 | 154 | |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
130 | 159 | |
131 | 160 | |
| 161 | + |
132 | 162 | |
133 | 163 | |
134 | 164 | |
| ||
137 | 167 | |
138 | 168 | |
139 | 169 | |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
140 | 195 | |
141 | 196 | |
142 | 197 | |
| ||
151 | 206 | |
152 | 207 | |
153 | 208 | |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
154 | 217 | |
155 | 218 | |
156 | 219 | |
|
Collapse file
lib/internal/main/mksnapshot.js
Copy file name to clipboardExpand all lines: lib/internal/main/mksnapshot.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
53 | 53 | |
54 | 54 | |
55 | 55 | |
|
Collapse file
+33-3Lines changed: 33 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
| 22 | + |
22 | 23 | |
23 | | - |
24 | 24 | |
25 | | - |
| 25 | + |
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
30 | 31 | |
31 | 32 | |
32 | | - |
33 | 33 | |
| 34 | + |
34 | 35 | |
35 | 36 | |
36 | 37 | |
| ||
1955 | 1956 | |
1956 | 1957 | |
1957 | 1958 | |
| 1959 | + |
| 1960 | + |
| 1961 | + |
| 1962 | + |
| 1963 | + |
| 1964 | + |
| 1965 | + |
| 1966 | + |
| 1967 | + |
| 1968 | + |
| 1969 | + |
| 1970 | + |
| 1971 | + |
| 1972 | + |
| 1973 | + |
| 1974 | + |
| 1975 | + |
| 1976 | + |
| 1977 | + |
| 1978 | + |
| 1979 | + |
| 1980 | + |
| 1981 | + |
| 1982 | + |
| 1983 | + |
| 1984 | + |
| 1985 | + |
1958 | 1986 | |
1959 | 1987 | |
1960 | 1988 | |
1961 | 1989 | |
| 1990 | + |
| 1991 | + |
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | 12 | |
| 13 | + |
| 14 | + |
14 | 15 | |
15 | 16 | |
16 | 17 | |
|
Collapse file
src/node_external_reference.h
Copy file name to clipboardExpand all lines: src/node_external_reference.h+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
| 65 | + |
65 | 66 | |
66 | 67 | |
67 | 68 | |
|
Collapse file
test/common/snapshot.js
Copy file name to clipboard+66Lines changed: 66 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 | + |
| 66 | + |
Collapse file
test/fixtures/snapshot/dns-lookup.js
Copy file name to clipboard+39Lines changed: 39 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 | + |
Collapse file
test/fixtures/snapshot/dns-resolve.js
Copy file name to clipboard+59Lines changed: 59 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 | + |
0 commit comments