@norskvideo/ctl-product-template-schema 0.1.24 → 0.1.25

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.
@@ -7,12 +7,17 @@
7
7
  // Transport: a WebSocket on the worker host, default port 6797, reached from
8
8
  // a container as `host.docker.internal`. Path `/instances/<jobId>/<role>`
9
9
  // where `role` is the instance KEY (unique per migration target), both
10
- // url-encoded. JSON text frames, each ≤ 64 KiB. `payload` is any JSON, opaque
10
+ // url-encoded. JSON text frames, each ≤ 1 MiB. `payload` is any JSON, opaque
11
11
  // to the worker; on the gRPC wire it becomes the UTF-8 bytes of its
12
12
  // JSON.stringify and comes back the same way.
13
13
  import { z } from "zod";
14
14
  export const JOB_SOCKET_DEFAULT_PORT = 6797;
15
- export const JOB_SOCKET_MAX_FRAME_BYTES = 64 * 1024;
15
+ // 1 MiB. It was 64 KiB, which a handover's `source-stopped-output` — the
16
+ // state of every participant, gathered after the source has stopped its
17
+ // output — could exceed with a few dozen nodes of 32 KiB each; the worker
18
+ // then closed the socket (4413) with the source already stopped. The SDK
19
+ // checks its own frames against this before sending (migration-client.ts).
20
+ export const JOB_SOCKET_MAX_FRAME_BYTES = 1024 * 1024;
16
21
  export const JOB_SOCKET_HELLO_TIMEOUT_MS = 5_000;
17
22
  /** The name a container reaches its own worker's host under. Injected as an
18
23
  * `extra_hosts` mapping on every service so it resolves on native Linux too. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norskvideo/ctl-product-template-schema",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {