Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
340eb5a
Say "Move here" and "relay" in every string a person reads
AbirAbbas Nov 23, 2026
f3eaf8b
Add the words law: no string a person reads says "Continue here" or "…
AbirAbbas Nov 23, 2026
0c55422
Call the relay's storage switch "relay storage", and keep the old nam…
AbirAbbas Nov 23, 2026
43b4bfa
manual: say "Move here" and "relay", and keep the old label findable
AbirAbbas Nov 23, 2026
59da4b3
manual: call the storage switch "relay storage", and keep the old nam…
AbirAbbas Nov 23, 2026
d563bbb
chatlist: the words of a live view, in one place
AbirAbbas Nov 23, 2026
0f20e5c
Say "relay storage" in the access request and the wire error, and kee…
AbirAbbas Nov 23, 2026
8aa4665
Move here is the only verb: delete ContinueVerb, and name the card's …
AbirAbbas Nov 23, 2026
6510e72
atlas: the pairing map says "move" for the act, and names the vault s…
AbirAbbas Nov 23, 2026
86658c2
factory: stop telling the model to "relay" an answer
AbirAbbas Nov 23, 2026
3cb6f97
e2e: the card's question is one needle, moveAsk, in the table
AbirAbbas Nov 23, 2026
c4e79cf
manual: one heading answers the old words, and the last "continue" va…
AbirAbbas Nov 23, 2026
67bb98b
wordlaw: three laws and two ledgers for the words this pass retired
AbirAbbas Nov 23, 2026
97a3ea7
tui3: the device pages may say "relay" now, and may spell the old nam…
AbirAbbas Nov 23, 2026
4c41d5c
relay: the API a live dial is written against (DialDoor, the two clas…
AbirAbbas Nov 23, 2026
c9e7db8
relay: hold a live dial to 14 streams, keep 2 for Move, cut a live st…
AbirAbbas Nov 23, 2026
c92d1ce
relay worker: the same class gate, breaker and Retry-After on the hos…
AbirAbbas Nov 23, 2026
7346394
pair, taskdoor: spread the redial after a drop so a relay restart doe…
AbirAbbas Nov 23, 2026
0b0f6e7
pair: keep a host-local book of what each paired device may do here
AbirAbbas Nov 23, 2026
9e9587b
pair: the approval line says a new computer can also control chats here
AbirAbbas Nov 23, 2026
17479dc
wordlaw: classify the relay's dial-class refusal as the server's word
AbirAbbas Nov 23, 2026
ba84cd7
chatlist: the words of a live view, in one place
AbirAbbas Nov 23, 2026
42f6027
viewcache: keep the last-seen copy of a chat another computer runs, o…
AbirAbbas Nov 23, 2026
4101c0f
remote: name the stamp a door puts on a viewer, and the paged transcr…
AbirAbbas Nov 23, 2026
530b417
remote: a remote viewer is a guest of the holder, default-deny
AbirAbbas Nov 23, 2026
7efba5b
session: an answer from another computer cannot settle an irreversibl…
AbirAbbas Nov 23, 2026
a564b1f
remote: the holder stamps answers from a guest and refuses what only …
AbirAbbas Nov 23, 2026
33a7b5a
tui3: a chat another computer runs can be shown as a live view
AbirAbbas Nov 23, 2026
25c8264
manual: a page for working in a chat that another of your computers runs
AbirAbbas Nov 23, 2026
4a37138
manual: the pages that said storage off meant no way into another com…
AbirAbbas Nov 23, 2026
10a3fed
tui3: Enter on another computer's chat opens it live, and a live chat…
AbirAbbas Nov 23, 2026
a4b329f
config: a Remote control setting, off until the person turns it on
AbirAbbas Nov 24, 2026
7bf657a
cmd: codeaf devices permit shows and changes what a paired computer m…
AbirAbbas Nov 24, 2026
78b2f86
pair: every approving screen says the new computer can also control c…
AbirAbbas Nov 24, 2026
416731d
tui3: older pages of a live chat, per-computer watch and type switche…
AbirAbbas Nov 24, 2026
2c2dfb2
manual: the sentences of the live view, the watch and type keys and t…
AbirAbbas Nov 24, 2026
79c490b
cmd: the terminal's door for live views, absent until a road to anoth…
AbirAbbas Nov 24, 2026
78e8806
remote: the credential law lists Hello.Remote among the reviewed fields
AbirAbbas Nov 24, 2026
d7d9c90
remote: a guest cannot stall the holder or flood a viewer with one line
AbirAbbas Nov 24, 2026
9a424b5
manual: the live-view endings heading stops outranking the closing-a-…
AbirAbbas Nov 24, 2026
1327032
e2e: the keyless remote control scenarios, written and vetted, not ye…
AbirAbbas Nov 24, 2026
131f2a5
remote: read a chat's transcript a page at a time
AbirAbbas Nov 24, 2026
6d1f50c
relay: the API a live dial is written against (DialDoor, the two clas…
AbirAbbas Nov 23, 2026
a34f073
remote: a message resent after a dropped link is never applied twice
AbirAbbas Nov 24, 2026
85ff76a
remote: a dropped link comes back at a different moment on every comp…
AbirAbbas Nov 24, 2026
1bd4cd3
remote: the engine folds streamed text into 33 ms runs only when remo…
AbirAbbas Nov 24, 2026
d457cf8
pair: a registration can carry a second kind of connection, chosen by…
AbirAbbas Nov 24, 2026
b404f76
filesdoor: the same door can hand a live view to the process that hol…
AbirAbbas Nov 24, 2026
706c48b
livedoor: the caps and the clock a live view runs on
AbirAbbas Nov 24, 2026
7743b91
livedoor: many chats over one tunnel, with credit and pacing
AbirAbbas Nov 24, 2026
d33dd8b
livedoor: the fake clock's order is proved by stepping, not by racing…
AbirAbbas Nov 24, 2026
741f519
livedoor: find the process that is running a chat, and never start one
AbirAbbas Nov 24, 2026
24e7d93
livedoor: a process that holds chats itself says so, and serves them …
AbirAbbas Nov 24, 2026
09e17eb
livedoor: a daily byte budget for what a viewer may pull through this…
AbirAbbas Nov 24, 2026
e707226
livedoor: one table of the open tunnels, so removal and permit edits …
AbirAbbas Nov 24, 2026
6b68b98
livedoor: read a chat's lines with a hard bound, and let a viewer say…
AbirAbbas Nov 24, 2026
f60e3b7
livedoor: the host opens a viewer's chats from the process that is ru…
AbirAbbas Nov 24, 2026
7696bdf
livedoor: the states a live view can be in, and the reasons it ends
AbirAbbas Nov 24, 2026
d175667
livedoor: one link to another computer that carries every chat open t…
AbirAbbas Nov 24, 2026
490a788
livedoor: a removed device is told it was removed, not that it lagged
AbirAbbas Nov 24, 2026
a3dc589
livedoor: tests that read their result when it has happened, not when…
AbirAbbas Nov 24, 2026
c3b6112
livedoor: reach an engine host through the program's own inspect and …
AbirAbbas Nov 24, 2026
ebd0038
syncsetup: serve the live door from the files door, and hand a viewer…
AbirAbbas Nov 24, 2026
78ab4b7
devices: a revoked device is told so and its permit is forgotten
AbirAbbas Nov 24, 2026
f16c679
perf: write the live door's limits into the performance laws
AbirAbbas Nov 24, 2026
334711a
config: name the readers the remote control row and the live door's a…
AbirAbbas Nov 24, 2026
63ae38e
livedoor: hold it to the goroutine law and pin that the program wires…
AbirAbbas Nov 24, 2026
fbcfa36
cmd: move the front-page line cap by the two lines the permit door adds
AbirAbbas Nov 24, 2026
38fcb68
livedoor: read the daily allowance variable through the environment door
AbirAbbas Nov 24, 2026
6476a1b
Merge rc/engine into rc/tui
AbirAbbas Nov 24, 2026
14154f1
appwire: name the calls and facts of a live view and of per-computer …
AbirAbbas Nov 24, 2026
5c4480e
tui3: a remote control switch on the Devices tab of Settings
AbirAbbas Nov 24, 2026
3600e34
viewcache: forget one chat's last-seen copy on every computer
AbirAbbas Nov 24, 2026
4c650b5
cmd: the real road for live views, per-computer permits on /devices, …
AbirAbbas Nov 24, 2026
61a9fc8
wordlaw: classify the live road's name as the server's word
AbirAbbas Nov 24, 2026
8ac0b9f
e2e: the relay answers storage off the way the hosted service does, a…
AbirAbbas Nov 24, 2026
8d3483d
wordlaw: count the relay's word in the remote control page
AbirAbbas Nov 24, 2026
85714e4
e2e: finish one turn on the host before the scenarios that hold a slo…
AbirAbbas Nov 24, 2026
90b1e1c
config: read the direct road's two operator variables through the env…
AbirAbbas Nov 24, 2026
311ff99
pair: IntentDirect, and a record is one write
AbirAbbas Nov 24, 2026
372fb41
appwire: tell the engine of each agents call before it runs, and name…
AbirAbbas Nov 24, 2026
6ae1055
cmd: devices.permit sets what a paired computer may do in this comput…
AbirAbbas Nov 24, 2026
b4dd234
cmd: the desktop opens a chat another computer is running as a live view
AbirAbbas Nov 24, 2026
588c935
manual: the desktop pages say a live send needs no storage and a cont…
AbirAbbas Nov 24, 2026
e2b125a
cmd: a live view redials with resend, the line bound and a gap note
AbirAbbas Nov 24, 2026
b8acda6
filesdoor: admit a direct tunnel, and dial one
AbirAbbas Nov 24, 2026
1b245bb
livedoor: a signalling op, the direct road's limits, and its interfaces
AbirAbbas Nov 24, 2026
06ae190
livedoor: serve a direct tunnel, and answer an offer
AbirAbbas Nov 24, 2026
c371c09
pair: the first computer a person pairs is a new pairing and types ou…
AbirAbbas Nov 24, 2026
1632f60
e2e: freeze the whole host, wait for it to know its others, read serv…
AbirAbbas Nov 24, 2026
ddc3cec
syncsetup: serve the direct road when a program installs one
AbirAbbas Nov 24, 2026
0a39915
directroad: a WebRTC data channel as a plain byte stream
AbirAbbas Nov 24, 2026
efe6ca4
livedoor: refuse an offer from a peer whose watching was taken away
AbirAbbas Nov 24, 2026
3f4c57d
cmd: install the direct road, and pay for it in the size budget
AbirAbbas Nov 24, 2026
54af7d4
e2e: open a viewer only once the host's chat is in the directory
AbirAbbas Nov 24, 2026
1f4ece8
cmd: the live view takes its locks through a helper that releases fro…
AbirAbbas Nov 24, 2026
566eed9
cmd: the desktop keeps the chats it runs reachable by another compute…
AbirAbbas Nov 24, 2026
43082c7
manual: a chat this desktop runs can be opened live from another comp…
AbirAbbas Nov 24, 2026
9ab3812
e2e: try the failing move on a chat with a turn running
AbirAbbas Nov 24, 2026
826f981
cmd: unlock the live road and the permit asker from a defer
AbirAbbas Nov 24, 2026
c11cd0a
e2e: fail a move at the relay, which is where a move is decided
AbirAbbas Nov 24, 2026
3806c42
e2e: a refused move is back in the live view when the foot and the no…
AbirAbbas Nov 24, 2026
7bc400d
e2e: the moved chat answers on the viewer, whatever words the stub picks
AbirAbbas Nov 24, 2026
9f6dfdb
Merge branch 'rc/desk' into feat/remote-control
AbirAbbas Nov 24, 2026
834beb1
Merge branch 'rc/direct' into feat/remote-control
AbirAbbas Nov 24, 2026
fa571cd
wordlaw, manual: classify the direct road's relay words and keep the …
AbirAbbas Nov 24, 2026
f83e37e
remote: a planned redial is immediate, and a viewer keeps the keyboar…
AbirAbbas Nov 24, 2026
ff6a5bb
Merge branch 'feat/remote-control' into rc/p2c
AbirAbbas Nov 24, 2026
eb7d61a
Give the desktop engine a Remote control switch, announced as setting…
AbirAbbas Nov 24, 2026
284f919
Do not copy the held-chat rig in the Remote control switch test
AbirAbbas Nov 24, 2026
c979b39
Say who has the keyboard of a chat the desktop holds, and let the des…
AbirAbbas Nov 24, 2026
2ab2464
List a chat on the other computers when its first turn starts, with r…
AbirAbbas Nov 24, 2026
947c788
Wake a chat held back for closed storage at the next touch, not on th…
AbirAbbas Nov 24, 2026
baa7de2
Unlock the storage recheck from a defer, as the lock law asks
AbirAbbas Nov 24, 2026
0023c73
livedoor: a holder letting a chat go ends that chat's viewers, throug…
AbirAbbas Nov 24, 2026
c405f2d
livedoor: a viewer link tries the direct road and swaps to it without…
AbirAbbas Nov 24, 2026
36db8fb
syncsetup: a viewer link offers the direct road where the door would …
AbirAbbas Nov 24, 2026
a85c3af
words: the road of a live view is live · direct or live · relay, read…
AbirAbbas Nov 24, 2026
7732022
app: a road flip reaches the desktop as one agent.changed, and a repe…
AbirAbbas Nov 24, 2026
d815125
manual: the direct road, what /status road says, and the switches tha…
AbirAbbas Nov 24, 2026
b660550
e2e: the direct road comes up on one machine, and relay-only stays on…
AbirAbbas Nov 24, 2026
7219010
Merge branch 'feat/remote-control' into rc/p2c
AbirAbbas Nov 24, 2026
c72ac9f
Stop serving remote control when it is turned off while codeaf keeps …
AbirAbbas Nov 24, 2026
11cd1d1
Say in the manual that turning remote control off ends live views alr…
AbirAbbas Nov 24, 2026
eb12e05
wordlaw: classify the direct road's two relay strings and count the p…
AbirAbbas Nov 24, 2026
f3704cc
Merge branch 'feat/remote-control' into rc/p2c
AbirAbbas Nov 24, 2026
997631a
livedoor: turning remote control off ends every viewer through the li…
AbirAbbas Nov 24, 2026
d90bbdb
livedoor: keep the retired product name out of a test helper's identi…
AbirAbbas Nov 24, 2026
3cfaebc
manual: a heading about the relay and setup no longer pulls a questio…
AbirAbbas Nov 24, 2026
ac29d7a
e2e: say how many bytes the relay carried in each direct-road scenario
AbirAbbas Nov 24, 2026
50ff2e5
e2e: hold every scenario but the two about the direct road to the relay
AbirAbbas Nov 24, 2026
d23bd7d
Merge origin/dev into feat/remote-control
AbirAbbas Nov 24, 2026
d5282b3
e2e: print chat.log in a failed scenario's dump
AbirAbbas Nov 24, 2026
fab922d
e2e: hold the relay's lease decision so Moving here can be asserted
AbirAbbas Nov 24, 2026
2dea90d
tui3: a window whose chat was taken keeps asking the new holder for a…
AbirAbbas Nov 24, 2026
eeb09ea
tui3: a live view keeps the sentences it said about itself across a r…
AbirAbbas Nov 24, 2026
32b3d7e
tui3: Enter on a chat another computer holds waits for the list of co…
AbirAbbas Nov 24, 2026
6b0f704
Merge commit 'd23bd7d5c8' into rc/e2efix
AbirAbbas Nov 24, 2026
7121dfe
Leave a pure live view out of what a quit writes down
AbirAbbas Nov 24, 2026
ceccecd
Merge commit '7121dfe672' into rc/e2efix
AbirAbbas Nov 24, 2026
a9aa8fb
tui3: a sentence a live view carries about a move no longer blocks th…
AbirAbbas Nov 24, 2026
bbaa181
e2e: the remote-control scenarios run on the automatic road, and a sc…
AbirAbbas Nov 24, 2026
6c185bc
e2e: a view on the direct road closes when its computer is removed
AbirAbbas Nov 24, 2026
8ba4ad1
fix(live): a view that does not hold the keyboard says so even when t…
AbirAbbas Nov 24, 2026
1a3f123
e2e: the view that comes back waits for the line that says it lacks t…
AbirAbbas Nov 24, 2026
6adfa75
size: set the direct road's budget to the measured merged-branch delta
AbirAbbas Nov 24, 2026
18596fa
test: the copied-chat ping-pong waits for the Home offer as it now reads
AbirAbbas Nov 24, 2026
39a0354
test: the replacement live dial waits for the relay to give the slot …
AbirAbbas Nov 24, 2026
c301725
test: close the move tunnel before the replacement live dial
AbirAbbas Nov 24, 2026
77664b1
manual: typing while another computer has the keyboard goes nowhere
AbirAbbas Nov 24, 2026
d3b591d
livedoor: a host that turned remote control off says so, and the view…
AbirAbbas Nov 24, 2026
b809bcc
remote: a view the far end ended on purpose is not redialled and says…
AbirAbbas Nov 24, 2026
75f3309
manual: a live view ended by remote control being turned off says so,…
AbirAbbas Nov 24, 2026
96e04ae
tui3: a running window reads remote control each time a live view cou…
AbirAbbas Nov 25, 2026
ab9138e
codeaf: the one-time question about older pairings follows remote con…
AbirAbbas Nov 25, 2026
4b22adb
tui3: a live view's folder is never Home's project
AbirAbbas Nov 25, 2026
e54434e
Merge branch 'rc/rcon' into feat/remote-control
AbirAbbas Nov 25, 2026
298de24
manual: say what a new chat's row carries early, and why it reads unt…
AbirAbbas Nov 25, 2026
e14aba5
syncsetup: the files door tells a view it ends that remote control is…
AbirAbbas Nov 25, 2026
0a31589
Merge branch 'rc/rcend' into feat/remote-control
AbirAbbas Nov 25, 2026
6d4df57
sync: a new chat's first turn asks for its own head, so the early row…
AbirAbbas Nov 25, 2026
34e5788
test: a new chat's first turn is on the other computer's Home while i…
AbirAbbas Nov 25, 2026
e5c7e3f
Merge branch 'rc/g3' into feat/remote-control
AbirAbbas Nov 25, 2026
41a6263
identity: remote control's bookkeeping in a home is never local work
AbirAbbas Nov 25, 2026
d10468b
test: the permit book and the byte count never make a home look used
AbirAbbas Nov 25, 2026
bf979aa
Merge branch 'rc/pairfix' into feat/remote-control
AbirAbbas Nov 25, 2026
ed7e367
Merge origin/dev (hosted organisations #2903) into feat/remote-control
AbirAbbas Nov 26, 2026
f190496
test: name the reopen test without spelling the old product name
AbirAbbas Nov 26, 2026
251762f
manual: say the server in between where the remote-control page said …
AbirAbbas Nov 26, 2026
95a4363
serve: Transcript.Page stays with a hosted chat's owner
AbirAbbas Nov 26, 2026
692161c
words: the paged chat read names the relay, and the hosted page joins…
AbirAbbas Nov 26, 2026
4a58983
manual: say programming once more where codeaf answers whether it is …
AbirAbbas Nov 26, 2026
fab4ef8
changes: remote control's entry, with what it moves for anyone who re…
AbirAbbas Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
83 changes: 83 additions & 0 deletions PERF.md
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,33 @@ always coordinate through it, so no build leaves it out. On linux/amd64 it adds
base), and the cap moves by the same amount, from 75,811,848 to 79,191,048, so
the 56,063 bytes of headroom the base had are kept.

## Direct road binary size

Every build links the direct road: the pion WebRTC stack (ICE, DTLS, SCTP and
the data channel) that lets two of a person's computers talk to each other
without the relay. It is built with CGO off, so it adds no C toolchain and no
shared library, and it is linked by `cmd/codeaf` alone: `internal/syncsetup`
states what it needs through a seam the program fills, so no other package pays
for it. The cap moves by 9,484,272 bytes, from 79,191,048 to 88,675,320: the
measured difference between two darwin/amd64 builds of `cmd/codeaf` with Go
1.26.5, `-trimpath -ldflags="-s -w"` and the same embedded artifacts, one of
`dev` at ca8e437b7 and one of the merged remote-control branch, so the headroom
the base had is kept. About 2.1 MB of that is pion's own code by symbol size and
about 0.2 MB is `internal/livedoor` and `internal/directroad`; the rest is what
roughly 6,700 more functions cost the whole binary in type data, line tables and
strings, because the program already links reflective method lookup and the
linker cannot drop exported methods. The design's estimate of 4.5 MB counted the
dependency alone and was wrong by half. The cheaper road, if this number ever
needs to fall, is to build the direct road from pion's ICE, DTLS, SCTP and data
channel packages without `pion/webrtc`, which drops the media packages (RTP,
RTCP, SRTP, SDP, interceptors and the TURN client) that nothing here uses; the
direct road is offered through a capability in the hello, so a later build can
change how it is made without breaking an older one.

When remote control is off, or `CODEAF_REMOTE_ROAD=relay` is set, nothing from
this stack runs: no peer connection is built and no STUN request is made. The
linked code costs bytes, never time.

## Usage writer identity startup

`TestUsageMillionRowLedgerFlush` constructs 1,000,000 unique historical call
Expand Down Expand Up @@ -894,3 +921,59 @@ It caps retained paths and visited entries at `2*N+100`, and Go allocations at
bytes; afterward it allocated 2,505,888 bytes. The 5,000+5,000 proof allocated
21,807,368 bytes. Bounds tests require refusal for paths, entries, reply size
and content bytes. Final metadata revalidation remains mandatory.

## The last-seen copy of a chat on another computer

A live view of a chat that another of the person's computers runs keeps, on the
viewer's own disk, the last thing it drew (`internal/viewcache`, under
`CODEAF_HOME/v3/viewed/<computer>/<chat>.json`, directories 0700, files 0600).
The relay stores nothing of it. The bounds are constants in that package and
this section changes in the same commit as they do: the newest 200 entries of a
chat (`MaxEntries`), at most 1 MiB of file per chat (`MaxBytes`, oldest entries
out first), 40 chats across every computer (`MaxChats`, oldest out), and at most
one write of a chat every 2 seconds from `Save` (`WriteEvery`; `SaveNow` is for
the beat that ends a view). Pruning reads file times, never file contents, so
forty copies cost a directory read and not forty megabytes.
`TestASnapshotIsBoundedAndPlainTextOnlyOnTheViewersDisk`,
`TestOnlyTheNewestFortyChatsAreKept` and
`TestACopyIsNotRewrittenMoreThanOnceInTwoSeconds` pin them.

## Live door limits

Remote control live sessions (`internal/livedoor/limits.go` owns these
constants and duration variables) are bounded by the table below. A change to
any of them changes this section in the same commit.

| Constant | Value | What it bounds |
| --- | --- | --- |
| `livedoor.MaxLine` | 256 KiB | A single EventWire JSON line so one oversized event cannot pin memory at the host or viewer above the tunnel. |
| `livedoor.ChunkBytes` | 16 KiB | A single multiplexer frame payload so concurrent channels interleave fairly on one tunnel and fit well inside a Noise plaintext record. |
| `livedoor.ChannelWindow` | 256 KiB | Unacknowledged data bytes in flight on one multiplexed channel so one unread chat cannot stall other chats on the same link. |
| `livedoor.LinkWindow` | 1 MiB | Total unacknowledged data bytes in flight across the entire tunnel so a blind relay cannot buffer unbounded data for a slow viewer. |
| `livedoor.QueueMax` | 4 MiB | The per-channel outbound queue at the host before a lagging viewer is reset back to Resume. |
| `livedoor.RingBytes` | 1 MiB | The holder's replay ring so a reset-then-Resume cycle either catches up within fixed memory or signals an explicit gap. |
| `livedoor.Rate` | 1 MiB/s | Outbound data payload bytes per second in each direction so a chatty session stays below the relay abuse breaker. |
| `livedoor.RateBurst` | 1 MiB | The token-bucket burst allowance paired with `Rate` so an initial welcome tail or burst of deltas up to one megabyte leaves without delay. |
| `livedoor.DailyBudget` | 256 MiB | The per-day carrier byte allowance before live sessions degrade to watch-only until midnight. |
| `livedoor.MaxLive` | 14 | Concurrent live-intent relay streams on the host so two of the sixteen relay stream slots stay reserved for Move. |
| `livedoor.MaxTunnelsPerDevice` | 2 | Simultaneous live tunnels from the same viewer device so a reconnecting link may briefly overlap its dying predecessor. |
| `livedoor.MaxChannelsPerLink` | 32 | Concurrent open channels on a single multiplexed tunnel so one viewer cannot allocate unbounded channel state. |
| `livedoor.FirstLineMax` | 64 KiB | The initial handshake line read on a local holder socket before the full session line limit applies. |
| `livedoor.PingEvery` | 3 s | The interval between multiplexer pings while a viewed chat is active. |
| `livedoor.DeadAfter` | 6 s | The silence window after a ping before an unanswered link is declared dead. |
| `livedoor.ActiveWindow` | 30 s | How long after a user action a viewed link remains in active ping mode before going quiet to keep the relay hibernated. |
| `livedoor.IdleDetach` | 10 min | How long an inactive viewer with no running turn stays attached before closing channels with reason `idle` so the relay costs nothing at rest. |
| `livedoor.WriteDeadline` | 2 s | How long the holder waits on a remote guest socket write before dropping that guest so a local surface never stalls. |
| `livedoor.MaxDirect` | 14 | Concurrent direct tunnels on the host; a direct tunnel holds no relay stream, so this is its own number, and `filesdoor.MaxDirect` is the same figure counted at the door. |
| `livedoor.DirectRate` | 64 MiB/s | Pacing (and burst) of a direct tunnel in each direction; the relay's 1 MiB/s exists for the relay's abuse breaker and bill, which a direct path has neither of. |
| `livedoor.SignalMax` | 8 KiB | One signalling payload (an offer, answer or candidate), half of `ChunkBytes`, so a signal fits one frame and an oversize one ends the link. |
| `livedoor.SignalRate` | 64 a minute | Signalling frames a link may carry in a minute before it is closed as `too-many`, so a viewer cannot turn the relay link into a flood. |
| `livedoor.PendingOffers` | 4 | Direct attempts a host has in flight at once over every viewer, so offers cannot make it build peer connections without limit. |
| `livedoor.OfferTTL` | 12 s | How long a host keeps an attempt that has produced no stream before it lets the attempt go. |
| `livedoor.DirectPingEvery` | 1 s | The multiplexer ping interval on a direct tunnel; it costs the relay nothing and is how a dead direct path is noticed. |
| `livedoor.DirectDeadAfter` | 2 s | The silence window after a ping before a direct tunnel is declared dead, so a dead path is noticed in about three seconds. |
| `livedoor.DirectSettle` | 500 ms | How long after a view's first channel opens that the viewer makes its first direct attempt, so the first paint never waits on the path finding. |
| `livedoor.DirectConnectWithin` | 8 s | The time one direct attempt gets to finish ICE, DTLS, SCTP, the handshake and the hello before it is abandoned. |
| `livedoor.DirectBackoff` | 5 s, 15 s, 1 min, 5 min, 10 min (repeating) | The wait after each failed direct attempt, ending in a ten-minute wait that repeats, so a blocked network costs a handful of packets an hour. |
| `livedoor.DirectStableAfter` | 60 s | How long a direct tunnel must stay up before the backoff ladder starts over. |

2 changes: 1 addition & 1 deletion SIZE-BUDGET
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79191048
88675320
Loading
Loading