@norskvideo/ctl-test-harness 0.1.41 → 0.1.43

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.
Files changed (3) hide show
  1. package/demo/run.js +7 -1
  2. package/package.json +1 -1
  3. package/smoke.js +7 -1
package/demo/run.js CHANGED
@@ -37,7 +37,13 @@ import { pollUntil } from "../poll.js";
37
37
  import { nukePathAsRoot, reportForeignOwners } from "../root-nuke.js";
38
38
  import { startSrtSources } from "../source-pump.js";
39
39
  import { makeStoreDir, TEST_TMP_BASE } from "../temp-dir.js";
40
- const DEMO_PORT_BASE = 35000;
40
+ // Below 32768, for the reason smoke.ts's band carries in full: 35000 sat inside
41
+ // the kernel's ephemeral range (32768-60999), so a banded port could be handed
42
+ // to an outbound connection as its source port and the daemon would then fail
43
+ // to bind with EADDRINUSE while nothing was listening on it. Disjoint from the
44
+ // smoke band and from the products' own (15000-31800); guarded by
45
+ // tests/port-bands.test.ts.
46
+ const DEMO_PORT_BASE = 22000;
41
47
  const DEMO_BAND_WIDTH = 20;
42
48
  const DEMO_BANDS = 50;
43
49
  const DEFAULT_DAEMON_PORT = 8333;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-test-harness",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/smoke.js CHANGED
@@ -29,7 +29,13 @@ import { nukePathAsRoot, reportForeignOwners } from "./root-nuke.js";
29
29
  import { startSrtSources } from "./source-pump.js";
30
30
  import { applyTestHost, fetchComponentState, fetchComponents, fetchStreamMappings, isSrtListenerState, } from "./studio-state.js";
31
31
  import { makeStoreDir, TEST_TMP_BASE } from "./temp-dir.js";
32
- const SMOKE_PORT_BASE = 33000;
32
+ // Below 32768: the band is a reservation, and Linux hands 32768-60999 out to
33
+ // OUTBOUND connections. At 33000 this band sat inside that range, so any of the
34
+ // many connections a run makes could be assigned a banded port as its source
35
+ // port and the daemon would fail to bind with EADDRINUSE while nothing was
36
+ // listening. Kept clear of the products' own bands (15000-31800) and guarded by
37
+ // tests/port-bands.test.ts.
38
+ const SMOKE_PORT_BASE = 21000;
33
39
  const SMOKE_BAND_WIDTH = 20;
34
40
  const SMOKE_BANDS = 50;
35
41
  const STUDIO_HOST_PORT_PARAM = "STUDIO_HOST_PORT";