@push.rocks/smartvpn 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "9a5aed62511c9afb659443f5274fdf71fd168206722b3c474f17311e761f8683",
3
+ "binarySha256": "99bac3443522361425a0f038061de8764c0cdaa5aae7bc0a81ff978b7743e86a",
4
4
  "buildInfo": {
5
5
  "projectName": "@push.rocks/smartvpn",
6
- "projectVersion": "2.7.0",
7
- "gitCommit": "02b302a29e212742fa3e1a9e2160f3858e0d6ea7",
6
+ "projectVersion": "2.8.0",
7
+ "gitCommit": "ea2b91234508f2befa1ee7da1187bc343700617f",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-14T23:00:02.136Z",
10
- "tsrustVersion": "4.5.1",
9
+ "builtAt": "2026-10-30T14:29:11.081Z",
10
+ "tsrustVersion": "1.1.1",
11
11
  "binary": "smartvpn_daemon",
12
12
  "target": "linux_amd64_musl"
13
13
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "format": "tsrust.build-provenance.v2",
3
- "binarySha256": "c09d9af20517c278fbcee6db74e24a44447ab3e173e88955a2b595cd796b3603",
3
+ "binarySha256": "0f394f849bbb515b3e59dc3766884d28fdc401289cc90d8dcb423398863bcc12",
4
4
  "buildInfo": {
5
5
  "projectName": "@push.rocks/smartvpn",
6
- "projectVersion": "2.7.0",
7
- "gitCommit": "02b302a29e212742fa3e1a9e2160f3858e0d6ea7",
6
+ "projectVersion": "2.8.0",
7
+ "gitCommit": "ea2b91234508f2befa1ee7da1187bc343700617f",
8
8
  "gitDirty": false,
9
- "builtAt": "2026-10-14T23:02:32.733Z",
10
- "tsrustVersion": "4.5.1",
9
+ "builtAt": "2026-10-30T14:31:16.358Z",
10
+ "tsrustVersion": "1.1.1",
11
11
  "binary": "smartvpn_daemon",
12
12
  "target": "linux_arm64_musl"
13
13
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartvpn',
6
- version: '2.7.0',
6
+ version: '2.8.0',
7
7
  description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSxzQkFBc0I7SUFDNUIsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLHlFQUF5RTtDQUN2RixDQUFBIn0=
@@ -1,4 +1,5 @@
1
1
  export * from './smartvpn.interfaces.js';
2
+ export { managedPreparationBoundMs } from './smartvpn.managedbounds.js';
2
3
  export { VpnBridge } from './smartvpn.classes.vpnbridge.js';
3
4
  export { VpnClient } from './smartvpn.classes.vpnclient.js';
4
5
  export { VpnServer } from './smartvpn.classes.vpnserver.js';
package/dist_ts/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  export * from './smartvpn.interfaces.js';
2
+ export { managedPreparationBoundMs } from './smartvpn.managedbounds.js';
2
3
  export { VpnBridge } from './smartvpn.classes.vpnbridge.js';
3
4
  export { VpnClient } from './smartvpn.classes.vpnclient.js';
4
5
  export { VpnServer } from './smartvpn.classes.vpnserver.js';
5
6
  export { VpnConfig } from './smartvpn.classes.vpnconfig.js';
6
7
  export { VpnInstaller } from './smartvpn.classes.vpninstaller.js';
7
8
  export { WgConfigGenerator } from './smartvpn.classes.wgconfig.js';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM1RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM1RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDbEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0NBQWdDLENBQUMifQ==
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBQ3hFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM1RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0saUNBQWlDLENBQUM7QUFDNUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQUM1RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sb0NBQW9DLENBQUM7QUFDbEUsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZ0NBQWdDLENBQUMifQ==
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The sum of a managed tunnel preparation's two timed steps, in milliseconds: adding the split
3
+ * routes, then auditing the device that holds them, each ended by its own bound and by name.
4
+ * Creating and configuring the device runs before them in blocking ioctls with no bound of its own,
5
+ * so a caller's window is the only limit on that part. A
6
+ * caller arming its own window around `prepareManagedTunnel` keeps that window longer than this, so
7
+ * SmartVPN names a failed step before the window fires. A hub assignment update that lands during
8
+ * the preparation is applied before the prepare answers and is not covered.
9
+ */
10
+ export declare const managedPreparationBoundMs = 6000;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The sum of a managed tunnel preparation's two timed steps, in milliseconds: adding the split
3
+ * routes, then auditing the device that holds them, each ended by its own bound and by name.
4
+ * Creating and configuring the device runs before them in blocking ioctls with no bound of its own,
5
+ * so a caller's window is the only limit on that part. A
6
+ * caller arming its own window around `prepareManagedTunnel` keeps that window longer than this, so
7
+ * SmartVPN names a failed step before the window fires. A hub assignment update that lands during
8
+ * the preparation is applied before the prepare answers and is not covered.
9
+ */
10
+ export const managedPreparationBoundMs = 6000;
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR2cG4ubWFuYWdlZGJvdW5kcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0dnBuLm1hbmFnZWRib3VuZHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7O0dBUUc7QUFDSCxNQUFNLENBQUMsTUFBTSx5QkFBeUIsR0FBRyxJQUFJLENBQUMifQ==
@@ -1602,6 +1602,32 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1602
1602
  IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1603
1603
  DEALINGS IN THE SOFTWARE.</pre>
1604
1604
  </section>
1605
+ <section>
1606
+ <h2>MIT License (MIT)</h2>
1607
+ <ul>
1608
+ <li>tikv-jemalloc-ctl 0.7.0</li>
1609
+ </ul>
1610
+ <pre>Copyright (c) 2017 Steven Fackler
1611
+
1612
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1613
+ of this software and associated documentation files (the &quot;Software&quot;), to deal
1614
+ in the Software without restriction, including without limitation the rights
1615
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1616
+ copies of the Software, and to permit persons to whom the Software is
1617
+ furnished to do so, subject to the following conditions:
1618
+
1619
+ The above copyright notice and this permission notice shall be included in all
1620
+ copies or substantial portions of the Software.
1621
+
1622
+ THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1623
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1624
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1625
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1626
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1627
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1628
+ SOFTWARE.
1629
+ </pre>
1630
+ </section>
1605
1631
  <section>
1606
1632
  <h2>MIT License (MIT)</h2>
1607
1633
  <ul>
@@ -3534,6 +3560,7 @@ DEALINGS IN THE SOFTWARE.</pre>
3534
3560
  <li>itoa 1.0.17</li>
3535
3561
  <li>once_cell 1.21.3</li>
3536
3562
  <li>parking 2.2.1</li>
3563
+ <li>paste 1.0.15</li>
3537
3564
  <li>pin-project-lite 0.2.16</li>
3538
3565
  <li>piper 0.2.4</li>
3539
3566
  <li>proc-macro2 1.0.106</li>
@@ -5,7 +5,7 @@
5
5
  "files": {
6
6
  "assets/third-party-licenses.md": "6be2373e39312d90eb3571bef614c89df565f98c917795d7aea3497f52ef19f1",
7
7
  "notices/aho-corasick-license.txt": "0f96a83840e146e43c0ec96a22ec1f392e0680e6c1226e6f3ba87e0740af850f",
8
- "notices/cargo-dependencies.html": "39c9877784b7b77bf2a9ba6f4d71fd0c791230ca79b10180b57c578408b3d291",
8
+ "notices/cargo-dependencies.html": "16aba7d84413a8e418b4a2bfb6c1e2ed97fd5df834380501630a5694d37dcc4a",
9
9
  "notices/compiler-builtins-license.txt": "ab6eec6caf0fa5775e411c7a8bc6a45c4ef2956b0980b157ab74fc5cd62a928b",
10
10
  "notices/defmt-license.txt": "0d17b75c1867fd568bcbb735f329d0d4253846c4b756a65e4d440c1e4bd59187",
11
11
  "notices/jemalloc-license.txt": "94aa2caa98c25d942f58b956c71dba6a99ff98fc3a31cbc669fe2a4cd0268b53",
@@ -17,11 +17,11 @@
17
17
  "notices/valuable-license.txt": "ed60d479b8fd1f64e9cbc3de449a16a53ac1b3d1b6aeb9bf9d190a8e93061b44",
18
18
  "rust-toolchain.toml": "19da9ff32e229a69ff5dde28ac23233256ff25e413a8c579155cf641f4f0634f",
19
19
  "rust/.cargo/config.toml": "eb6896791bd573f2cb099aa41c7d3668c6d368166945abd3553c8d8029ba8b7b",
20
- "rust/Cargo.lock": "2e05b92f0002e6bcea69c94b900821bb4fa36bb4f22d3112f186cea1bc761e89",
21
- "rust/Cargo.toml": "f65fa4e7ebaad6aed9fcf66011dd0f0a0f5253b26b656ad672300b99e3040704",
20
+ "rust/Cargo.lock": "1684d251ee05413f0305152879a2a1d993dfb51682a8e393e24cc8cab25bac51",
21
+ "rust/Cargo.toml": "6bf9e1f26e6f137f1a6af8f624e320dcdc14aa07612758d1c095cf8b09bbabb0",
22
22
  "rust/about.hbs": "a7c35d089563a08520a6e5f351aadae659e1f7bf24cabedbca3de8a89e966f86",
23
23
  "rust/about.toml": "a457e0cc7532020c0f87532919a754997213ccbec6211c9501b8c198d404ed72",
24
- "third-party-notices.md": "be663adf30d43caa602953e6b98d91c1b0fe3d221041389fe616bf6fcdf40b00"
24
+ "third-party-notices.md": "97f0781c96dd6628f6a3488f1f1e7706012d7c8a8deace551009d06fad8e16a1"
25
25
  },
26
26
  "supplementalCargoNotices": {
27
27
  "aho-corasick@1.1.4": "notices/aho-corasick-license.txt",
@@ -664,6 +664,11 @@
664
664
  "version": "0.9.12",
665
665
  "license": "MIT OR Apache-2.0"
666
666
  },
667
+ {
668
+ "name": "paste",
669
+ "version": "1.0.15",
670
+ "license": "MIT OR Apache-2.0"
671
+ },
667
672
  {
668
673
  "name": "pem",
669
674
  "version": "3.0.6",
@@ -999,6 +1004,11 @@
999
1004
  "version": "1.1.9",
1000
1005
  "license": "MIT OR Apache-2.0"
1001
1006
  },
1007
+ {
1008
+ "name": "tikv-jemalloc-ctl",
1009
+ "version": "0.7.0",
1010
+ "license": "MIT/Apache-2.0"
1011
+ },
1002
1012
  {
1003
1013
  "name": "tikv-jemalloc-sys",
1004
1014
  "version": "0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartvpn",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "private": false,
5
5
  "description": "A VPN solution with TypeScript control plane and Rust data plane daemon",
6
6
  "type": "module",
@@ -29,11 +29,9 @@
29
29
  "@push.rocks/smartsea": "^1.0.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@git.zone/tsbuild": "^6.0.2",
33
- "@git.zone/tsrun": "^3.0.3",
34
- "@git.zone/tsrust": "^4.5.1",
35
- "@git.zone/tstest": "^8.0.0",
36
- "@types/node": "^26.6.4"
32
+ "@git.zone/rsrepo": "^1.1.1",
33
+ "@git.zone/tsrepo": "^1.1.1",
34
+ "@types/node": "^26.6.5"
37
35
  },
38
36
  "files": [
39
37
  "ts/**/*",
@@ -55,11 +53,11 @@
55
53
  ]
56
54
  },
57
55
  "scripts": {
58
- "build": "(tsbuild tsfolders) && (tsrust)",
59
- "build:release": "(tsbuild tsfolders) && (tsrust --configured-targets) && (tsrust verify)",
60
- "test:before": "(tsrust)",
61
- "test": "tstest test/ --verbose --logfile --timeout 90",
56
+ "build": "(tsrepo build tsfolders) && (rsrepo)",
57
+ "build:release": "(tsrepo build tsfolders) && (rsrepo --configured-targets) && (rsrepo verify)",
58
+ "test:before": "(rsrepo)",
59
+ "test": "tsrepo test test/ --verbose --logfile --timeout 90",
62
60
  "test:rust": "cd rust && cargo test",
63
- "buildDocs": "tsdoc"
61
+ "buildDocs": "tsrepo docs"
64
62
  }
65
63
  }
package/readme.md CHANGED
@@ -130,7 +130,10 @@ A Linux stdio client accepts `networkNamespaceFd` in `IVpnClientOptions`. Pass a
130
130
  already open network namespace descriptor; the caller retains ownership and keeps
131
131
  it valid through each `start()`. The child validates its inherited duplicate,
132
132
  enters the namespace before creating runtime threads or sockets, then closes the
133
- duplicate. Invalid descriptors and failed entry cannot produce a ready client.
133
+ duplicate. jemalloc's background purge threads start after entry too, so every
134
+ thread of the daemon runs in the namespace. A child that already runs another
135
+ thread at entry, for example under `_RJEM_MALLOC_CONF=background_thread:true`,
136
+ refuses to start. Invalid descriptors and failed entry cannot produce a ready client.
134
137
  Stopping the client waits for process termination before the caller releases its
135
138
  namespace owner. A running child remains in its namespace if the caller closes
136
139
  the original descriptor, but a later start still requires a valid descriptor.
@@ -211,7 +214,13 @@ starting. Keep the live client owner and use the returned generation for each st
211
214
  `prepareManagedTunnel(generation)` then creates that fresh nonpersistent TUN
212
215
  with `IFF_TUN_EXCL`, the assigned IPv4 /32 and exact split routes. The interface
213
216
  is UP; packet forwarding remains disabled. An existing same-named interface
214
- causes failure and is never adopted or deleted.
217
+ causes failure and is never adopted or deleted. Creating and configuring the device runs first, in blocking ioctls with no bound of its own, so a caller's window is the only limit on that part. The two timed steps after it take at most
218
+ `managedPreparationBoundMs` (6 seconds): adding the routes and auditing the device,
219
+ 3 seconds each, one after the other, and a step that overruns fails the prepare by
220
+ name (`Managed route creation timed out`, `Managed kernel inventory timed out`)
221
+ with the device and its routes gone. A caller that arms its own window around the
222
+ prepare keeps it longer than that bound. A hub assignment update that lands during
223
+ the prepare is applied before the reply and adds its own route and audit steps.
215
224
  3. Install and verify caller-owned policy against the fresh returned `runtime`.
216
225
  `enableManagedForwarding(generation)` reinspects the native inventory, discards
217
226
  already-ready incoming encrypted frames and TUN packets, then starts forwarding.
@@ -241,6 +250,19 @@ policy removal, conntrack drainage, delivery of previously queued network packet
241
250
  or safe allocation reuse. IPv6, underlay, workload links, sysctls, global routes and
242
251
  firewall policy remain the caller's responsibility.
243
252
 
253
+ Apart from the retirement on changed or restored kernel inventory above, SmartVPN
254
+ never deletes a device it made unless its owner releases it with `disconnect()` (or
255
+ `stop()`). A prepare accepted before the session stops, whether by transport loss,
256
+ the relay's `Disconnect`, `stopManagedForwarding` or lease expiry, still runs to its
257
+ own end, which its route and audit steps bound (3 seconds each). A TUN it made
258
+ stays, with the same interface index, in the stopped session's custody. Only then
259
+ does the prepare reject, with the stopped session's refusal `Stopped managed session
260
+ cannot restart`, and the `stopped` event follows.
261
+ `inspectManagedSession(generation)` reports phase `stopped` with that device as
262
+ `runtime`; it holds the split routes of the assignment it was prepared for
263
+ (`runtime.assignment`). A rejected prepare therefore does not prove that no device
264
+ exists: inspect, and lower a device that is still there, before disconnecting.
265
+
244
266
  ### Retained managed TUN runtime
245
267
 
246
268
  An authenticated native managed connection with `forwardingMode: 'tun'` returns
@@ -1157,7 +1179,7 @@ pnpm test
1157
1179
  cd rust && cargo test
1158
1180
 
1159
1181
  # Run a specific TS test
1160
- tstest test/test.flowcontrol.node.ts --verbose
1182
+ pnpm exec tsrepo test test/test.flowcontrol.node.ts --verbose
1161
1183
  ```
1162
1184
 
1163
1185
  ### Project Structure
@@ -1169,6 +1191,7 @@ smartvpn/
1169
1191
  │ ├── smartvpn.interfaces.ts # Interfaces, types, IPC command maps
1170
1192
  │ ├── smartvpn.plugins.ts # Dependency imports
1171
1193
  │ ├── smartvpn.paths.ts # Binary path resolution
1194
+ │ ├── smartvpn.managedbounds.ts # Managed preparation bound (`managedPreparationBoundMs`)
1172
1195
  │ ├── smartvpn.classes.vpnserver.ts
1173
1196
  │ ├── smartvpn.classes.vpnclient.ts
1174
1197
  │ ├── smartvpn.classes.vpnbridge.ts
@@ -6,7 +6,7 @@ SmartVPN's own code is MIT-licensed under [license.md](./license.md).
6
6
  ## Cargo dependencies
7
7
 
8
8
  [Cargo dependency notices](./notices/cargo-dependencies.html) reproduce the selected
9
- upstream license and copyright texts for 270 third-party packages. Eight additional
9
+ upstream license and copyright texts for 272 third-party packages. Eight additional
10
10
  locked, feature-inactive packages are covered by these supplemental MIT notices:
11
11
 
12
12
  - [aho-corasick 1.1.4](./notices/aho-corasick-license.txt), from the published crate's `LICENSE-MIT`.
@@ -22,7 +22,7 @@ locked, feature-inactive packages are covered by these supplemental MIT notices:
22
22
  - [valuable 0.1.1](./notices/valuable-license.txt), from
23
23
  [its pinned upstream LICENSE](https://github.com/tokio-rs/valuable/blob/9efc29b6e58cef28f6566a47aa7e142a55fead77/LICENSE).
24
24
 
25
- Together these cover all 278 locked external packages, conservatively including
25
+ Together these cover all 280 locked external packages, conservatively including
26
26
  build-only and target-inactive dependencies. Listing a package does not mean it
27
27
  is linked into either Linux executable. MIT is preferred where offered as an
28
28
  alternative; other selected terms include Apache-2.0, BSD, ISC, Unicode-3.0,
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartvpn',
6
- version: '2.7.0',
6
+ version: '2.8.0',
7
7
  description: 'A VPN solution with TypeScript control plane and Rust data plane daemon'
8
8
  }
package/ts/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './smartvpn.interfaces.js';
2
+ export { managedPreparationBoundMs } from './smartvpn.managedbounds.js';
2
3
  export { VpnBridge } from './smartvpn.classes.vpnbridge.js';
3
4
  export { VpnClient } from './smartvpn.classes.vpnclient.js';
4
5
  export { VpnServer } from './smartvpn.classes.vpnserver.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The sum of a managed tunnel preparation's two timed steps, in milliseconds: adding the split
3
+ * routes, then auditing the device that holds them, each ended by its own bound and by name.
4
+ * Creating and configuring the device runs before them in blocking ioctls with no bound of its own,
5
+ * so a caller's window is the only limit on that part. A
6
+ * caller arming its own window around `prepareManagedTunnel` keeps that window longer than this, so
7
+ * SmartVPN names a failed step before the window fires. A hub assignment update that lands during
8
+ * the preparation is applied before the prepare answers and is not covered.
9
+ */
10
+ export const managedPreparationBoundMs = 6000;