@caprid/relay-quic 0.2.0 → 0.4.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.
package/README.md CHANGED
@@ -39,6 +39,48 @@ By default a dial trusts the platform's root certificates.
39
39
  end-entity certificate must match one hash, and the adapter does not validate its chain. It still checks the
40
40
  handshake signature. Unlike a browser, the adapter does not require the certificate to be valid for 14 days or less.
41
41
 
42
+ ## Stream credit
43
+
44
+ `anticipatedConcurrentIncomingUnidirectionalStreams` is how many unidirectional streams the relay may have open to the
45
+ connection at once: the MAX_STREAMS credit this end grants (RFC 9000 §4.6). It is an integer from 1 to 65535, and the
46
+ default is 1000. quinn's own default is 100. The relay sends each group on a stream of its own, so a voice track at 50
47
+ frames a second takes 50 streams a second, and the credit for each closed stream returns over your uplink. In relay-dev's
48
+ voice benchmark (finding P-06), a subscriber whose own upload queued its uplink for about 2 s ran out of credit at 100:
49
+ locally, the median arrival delay was 2865 ms, and 21.5 ms with more credit. 1000 covers a 20 s stall of the uplink on
50
+ one such track.
51
+
52
+ quinn sets aside an entry per allowed stream up front, so a higher value costs memory on every connection. Unlike the
53
+ W3C WebTransport option of the same name, which is a hint that the browser may round up, this is the exact limit. A
54
+ value that is not an integer from 1 to 65535 throws a `RangeError` at once, before the addon loads. Bidirectional
55
+ streams keep quinn's default of 100, because the relay opens one per request, not per object. `@caprid/relay/node` uses
56
+ the default and takes no such option. To change it, build the factory yourself:
57
+
58
+ ```ts
59
+ import { connectRelaySubscriber } from '@caprid/relay';
60
+ import { nativeQuicTransport } from '@caprid/relay-quic';
61
+
62
+ const subscriber = await connectRelaySubscriber({
63
+ url: 'https://relay.mux.global',
64
+ getToken: () => process.env.RELAY_TOKEN,
65
+ createTransport: nativeQuicTransport({ anticipatedConcurrentIncomingUnidirectionalStreams: 5000 }),
66
+ });
67
+ ```
68
+
69
+ ## qlog
70
+
71
+ `nativeQuicTransport({ qlogDir })` writes a qlog trace of every connection into that directory. Without the option,
72
+ the `RELAY_QUIC_QLOG_DIR` environment variable is read when the factory is made; an empty string turns qlog off. It is
73
+ off by default. The directory is created if it is missing, and a failure to create it throws at once. Each connection
74
+ attempt gets one file, `relay-quic-<unix ms>-<pid>-<n>.sqlog`: JSON text sequences, written by quinn's `qlog` feature.
75
+ A trace holds each packet's number and type as it is sent and received, the size of each packet sent, the packets
76
+ declared lost, and the RTT, congestion window and bytes in flight as they change. quinn 0.11 logs no frames, so a trace holds no stream data and no
77
+ token. A file that cannot be created is skipped, and the dial goes on. `@caprid/relay/node` takes no such option, but
78
+ reads the environment variable, so `RELAY_QUIC_QLOG_DIR=/tmp/qlog node script.mjs` traces a script without changing it.
79
+
80
+ The feature has a cost in size. The linux-x64-gnu release addon grew from 2,766,896 to 2,912,848 bytes (+145,952 B,
81
+ +5.3%), and gzip -9 of it from 1,306,675 to 1,372,739 bytes (+66,064 B), built locally with Rust 1.97.1 from `main`
82
+ and from this change. The sizes in the table under "Prebuilt binaries" are from before it.
83
+
42
84
  ## Process lifetime
43
85
 
44
86
  An open session keeps the Node process alive, from the start of the dial until `closed` settles. After that the
@@ -52,8 +94,8 @@ packages do. A package manager installs only the one whose `os`, `cpu`, and `lib
52
94
 
53
95
  | Platform package | Built on | Packed | Installed |
54
96
  | --- | --- | --- | --- |
55
- | `@caprid/relay-quic-darwin-arm64` | macos-14 | 1.14 MiB | 2.62 MiB |
56
- | `@caprid/relay-quic-darwin-x64` | macos-14, cross | 1.21 MiB | 2.85 MiB |
97
+ | `@caprid/relay-quic-darwin-arm64` | macos-15 | 1.14 MiB | 2.62 MiB |
98
+ | `@caprid/relay-quic-darwin-x64` | macos-15, cross | 1.21 MiB | 2.85 MiB |
57
99
  | `@caprid/relay-quic-linux-arm64-gnu` | ubuntu-latest, zig | 1.19 MiB | 2.67 MiB |
58
100
  | `@caprid/relay-quic-linux-arm64-musl` | ubuntu-latest, zig | 1.19 MiB | 2.67 MiB |
59
101
  | `@caprid/relay-quic-linux-x64-gnu` | ubuntu-latest, zig | 1.26 MiB | 3.01 MiB |
@@ -114,6 +156,6 @@ the crate. CI checks that it matches.
114
156
  | `src/streams.ts` | WHATWG streams over the addon's stream halves. |
115
157
  | `src/errors.ts` | The addon's failures as the contract's error shapes (TA-22). |
116
158
  | `src/addon.ts` | Finds and loads the addon for this platform: a local build, else the platform package. |
117
- | `native/` | The Rust crate: trust (`tls.rs`), stream halves (`stream.rs`), failures as data (`failure.rs`), the dial and the session (`lib.rs`). |
159
+ | `native/` | The Rust crate: trust (`tls.rs`), stream halves (`stream.rs`), failures as data (`failure.rs`), the dial, qlog and the session (`lib.rs`). |
118
160
  | `npm/<platform>/` | The platform packages, one per `napi.targets` entry; CI puts each binary in its own. |
119
161
  | `scripts/pack.mjs`, `scripts/smoke.mjs` | Pack the release tarballs with their sizes; install and smoke-load them. |
package/dist/index.d.ts CHANGED
@@ -13,7 +13,10 @@ export interface CertificateHash {
13
13
  /** The SHA-256 of the certificate's DER encoding. */
14
14
  value: BufferSource;
15
15
  }
16
- /** What {@link nativeQuicTransport}'s dials trust. With neither option, a dial trusts the platform's roots. */
16
+ /**
17
+ * What {@link nativeQuicTransport}'s dials trust, how many streams they let the relay open, and where they write qlog.
18
+ * With neither trust option, a dial trusts the platform's roots.
19
+ */
17
20
  export interface NativeQuicTransportOptions {
18
21
  /**
19
22
  * Extra trust anchors, PEM encoded, added to the platform's roots: one string or buffer may hold several
@@ -26,6 +29,26 @@ export interface NativeQuicTransportOptions {
26
29
  * apply is not.
27
30
  */
28
31
  serverCertificateHashes?: readonly CertificateHash[];
32
+ /**
33
+ * How many unidirectional streams the relay may have open to this connection at once: the MAX_STREAMS credit the
34
+ * connection grants (RFC 9000 §4.6), an integer from 1 to 65535; 1000 when absent.
35
+ *
36
+ * The relay delivers each group of a track on a stream of its own, so a voice track at 50 frames a second takes 50
37
+ * streams a second, and the credit for each closed stream returns over this end's uplink. 1000 is a 20 s stall of
38
+ * that uplink on one such track; quinn's own default, 100, starved a subscriber whose upload queued its uplink for
39
+ * 2 s. quinn sets aside an entry per allowed stream up front, which is the cost of a higher value. Unlike
40
+ * WebTransport's option of the same name, which is a hint the browser may round up, this is the exact limit.
41
+ */
42
+ anticipatedConcurrentIncomingUnidirectionalStreams?: number;
43
+ /**
44
+ * A directory to write a qlog trace of every connection into, one `relay-quic-<ms>-<pid>-<n>.sqlog` file (JSON text
45
+ * sequences, qlog 0.3) per connection attempt, created if it does not exist. Absent, the `RELAY_QUIC_QLOG_DIR`
46
+ * environment variable is read when the factory is made; an empty string turns qlog off. Off by default. A trace
47
+ * holds each packet's number and type, the size of each packet sent, the packets lost, and the RTT and congestion
48
+ * window as they change; quinn 0.11 logs no frames, so it holds no stream data and no token. A file that cannot be
49
+ * created is skipped, and the dial goes on.
50
+ */
51
+ qlogDir?: string;
29
52
  }
30
53
  /** The transport a {@link NativeQuicConnection} carries: a `MoqtTransport` that reports the selected protocol. */
31
54
  export interface NativeQuicMoqtTransport extends MoqtTransport {
@@ -56,8 +79,9 @@ export type NativeQuicTransportFactory = (url: string, protocols: string[]) => N
56
79
  * const publisher = await connectRelayPublisher({ url, getToken, createTransport: nativeQuicTransport() });
57
80
  * ```
58
81
  *
59
- * Throws at once when the native addon is missing for this platform, a `ca` entry holds no PEM certificate, or a
60
- * certificate hash is not a 32-byte SHA-256.
82
+ * Throws at once when `anticipatedConcurrentIncomingUnidirectionalStreams` is not an integer from 1 to 65535,
83
+ * `qlogDir` is not a string or cannot be created, the native addon is missing for this platform, a `ca` entry holds no
84
+ * PEM certificate, or a certificate hash is not a 32-byte SHA-256.
61
85
  */
62
86
  export declare function nativeQuicTransport(options?: NativeQuicTransportOptions): NativeQuicTransportFactory;
63
87
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAItD,wGAAwG;AAC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E,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC;IAC5D;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACrD;;;;;;;;;OASG;IACH,kDAAkD,CAAC,EAAE,MAAM,CAAC;IAC5D;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,kHAAkH;AAClH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D,2EAA2E;IAC3E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,oHAAoH;AACpH,MAAM,WAAW,oBAAoB;IACnC,8CAA8C;IAC9C,SAAS,EAAE,uBAAuB,CAAC;IACnC,4FAA4F;IAC5F,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,2FAA2F;IAC3F,OAAO,EAAE,aAAa,CAAC;CACxB;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,oBAAoB,CAAC;AAYpG;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,0BAA+B,GAAG,0BAA0B,CA4BxG"}
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import { loadAddon } from './addon.js';
2
2
  import { NativeQuicTransport } from './transport.js';
3
+ /** The environment variable that turns qlog on when {@link NativeQuicTransportOptions.qlogDir} is absent. */
4
+ const QLOG_DIR_ENV = 'RELAY_QUIC_QLOG_DIR';
3
5
  /** PEM text from a string or bytes. */
4
6
  function pem(value) {
5
7
  return typeof value === 'string' ? value : new TextDecoder().decode(value);
@@ -19,10 +21,18 @@ function bytesOf(value) {
19
21
  * const publisher = await connectRelayPublisher({ url, getToken, createTransport: nativeQuicTransport() });
20
22
  * ```
21
23
  *
22
- * Throws at once when the native addon is missing for this platform, a `ca` entry holds no PEM certificate, or a
23
- * certificate hash is not a 32-byte SHA-256.
24
+ * Throws at once when `anticipatedConcurrentIncomingUnidirectionalStreams` is not an integer from 1 to 65535,
25
+ * `qlogDir` is not a string or cannot be created, the native addon is missing for this platform, a `ca` entry holds no
26
+ * PEM certificate, or a certificate hash is not a 32-byte SHA-256.
24
27
  */
25
28
  export function nativeQuicTransport(options = {}) {
29
+ const streams = options.anticipatedConcurrentIncomingUnidirectionalStreams;
30
+ if (streams !== undefined && !(Number.isInteger(streams) && streams >= 1 && streams <= 0xffff)) {
31
+ throw new RangeError(`anticipatedConcurrentIncomingUnidirectionalStreams must be an integer from 1 to 65535, not ${streams}`);
32
+ }
33
+ const qlogDir = options.qlogDir ?? process.env[QLOG_DIR_ENV];
34
+ if (qlogDir !== undefined && typeof qlogDir !== 'string')
35
+ throw new TypeError('qlogDir must be a string');
26
36
  const { Client } = loadAddon();
27
37
  const ca = options.ca === undefined ? [] : Array.isArray(options.ca) ? options.ca : [options.ca];
28
38
  const client = new Client({
@@ -32,6 +42,8 @@ export function nativeQuicTransport(options = {}) {
32
42
  throw new TypeError(`unsupported certificate hash algorithm ${hash.algorithm}`);
33
43
  return bytesOf(hash.value);
34
44
  }),
45
+ ...(streams === undefined ? {} : { maxConcurrentUniStreams: streams }),
46
+ ...(qlogDir ? { qlogDir } : {}),
35
47
  });
36
48
  return (url, protocols) => {
37
49
  // Only the host and port are read (TA-3): the path and query, token included, travel in SETUP.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AA+CrD,uCAAuC;AACvC,SAAS,GAAG,CAAC,KAA0B;IACrC,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,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CAAC;QACtE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAChC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,EAAE,SAAS,EAAE,EAAE;QACxB,+FAA+F;QAC/F,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;QACzE,MAAM,SAAS,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;QAChH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IACvE,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caprid/relay-quic",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "Native QUIC transport adapter for the Relay SDK in Node",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,7 +33,7 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@caprid/moq-core": "0.2.0"
36
+ "@caprid/moq-core": "0.4.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@napi-rs/cli": "3.10.5",
@@ -46,13 +46,13 @@
46
46
  "access": "public"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@caprid/relay-quic-darwin-arm64": "0.2.0",
50
- "@caprid/relay-quic-darwin-x64": "0.2.0",
51
- "@caprid/relay-quic-linux-arm64-gnu": "0.2.0",
52
- "@caprid/relay-quic-linux-arm64-musl": "0.2.0",
53
- "@caprid/relay-quic-linux-x64-gnu": "0.2.0",
54
- "@caprid/relay-quic-linux-x64-musl": "0.2.0",
55
- "@caprid/relay-quic-win32-x64-msvc": "0.2.0"
49
+ "@caprid/relay-quic-darwin-arm64": "0.4.0",
50
+ "@caprid/relay-quic-darwin-x64": "0.4.0",
51
+ "@caprid/relay-quic-linux-arm64-gnu": "0.4.0",
52
+ "@caprid/relay-quic-linux-arm64-musl": "0.4.0",
53
+ "@caprid/relay-quic-linux-x64-gnu": "0.4.0",
54
+ "@caprid/relay-quic-linux-x64-musl": "0.4.0",
55
+ "@caprid/relay-quic-win32-x64-msvc": "0.4.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsc -p tsconfig.json",