diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 16:12:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 16:48:13 -0300 |
| commit | 48b9b370fb60d5543afd7ba5b96bbddf06028ae2 (patch) | |
| tree | 6708e0d9a319b4acda0786dafe18798463c32b68 /abi/wire.zig | |
| parent | 387297c3bd42c7016e36009ecf8c807259398ac7 (diff) | |
| download | pardes-48b9b370fb60d5543afd7ba5b96bbddf06028ae2.tar.gz pardes-48b9b370fb60d5543afd7ba5b96bbddf06028ae2.zip | |
views: a view kept for its client's rejoin is that client's for away_kept_ns (30 s): the screen-state soak's 'the far client never showed the screen after the flood (it left)' (seed 0 at 207 ms, reproduced in f207-2: the far client 10.5 s behind joined again for its lag, then refused 40 times with 42 keys left, and given up) was openViewInner (Core.zig:1168) giving a join with no room the first away view (Views.close(@ctz(views_away))) while that view's client, which had said in its bye that it joins again, was still waiting for its dump to cross a slow link: a dialling client took its place and every later join of the far client was refused; FIRST the test (views.zig, the rejoin test turned round: with every view taken and two kept away, a join is refused until away_kept_ns has passed, then takes the first kept; on the base 'expected null, found 1'); then the fix: View.away_ns, the session's clock when its client went away (Views.away), and openViewInner lets a kept view go only once it is that old; the bound: the soak's far link (1 Mbit/s, 200 ms each way) has taken up to 18.3 s between two of its joins (g-1, 207 ms) and 15.6 s before; past 30 s the client is taken as gone; the wire's version 23 -> 24 (a view's state in the dump and the digest), test/daemon.py's WIRE with it; a user: a far client resyncing for its lag while a fifth client dialled lost its view and was refused (every view taken)
Diffstat (limited to 'abi/wire.zig')
| -rw-r--r-- | abi/wire.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/abi/wire.zig b/abi/wire.zig index 8713ba98..ff1d1bf2 100644 --- a/abi/wire.zig +++ b/abi/wire.zig @@ -10,6 +10,8 @@ const pardes = @import("core"); const config = @import("pardes_options"); const build_info = @import("build_info"); +/// 24: a view kept for its client's rejoin says when it went away +/// (View.away_ns), and is that client's for Views.away_kept_ns; /// 23: a pane of a kind's frame names its rasters by key, their pixels /// crossing before it as strips of 4 MiB at most over the rows it shows /// (screen kind 5), and a replica lacking one asks for its pane again @@ -36,7 +38,7 @@ const build_info = @import("build_info"); /// part B); 14: the hello names a session and /// carries the semantics hash, and a ping is answered (phase 5's /// groundwork); 13: the frames went (phase 3). -pub const version: u16 = 23; +pub const version: u16 = 24; /// The terminal's build and the window's step alike (`semantics`). const family = switch (config.platform) { |
