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 | 98d8dc2e6518ddbde7582751dbd55ccf8d6c88ac (patch) | |
| tree | f79875f3763ed9d8e9e88a4c67e4a5bba59e647b /test | |
| parent | 48b9b370fb60d5543afd7ba5b96bbddf06028ae2 (diff) | |
| download | pardes-98d8dc2e6518ddbde7582751dbd55ccf8d6c88ac.tar.gz pardes-98d8dc2e6518ddbde7582751dbd55ccf8d6c88ac.zip | |
soak: the witness's replica keeps its own distrusted kinds (a local of Witness.load was a dead stack slot: the screen-state soak's panic 'index out of bounds: index 12297829382473034410, len 16' in Addon.Distrusted.add under Witness.judge, scr-1), and the far client's first refusal before its screen after the flood is said (keys left, try), so that 'it left' names its path
Diffstat (limited to 'test')
| -rw-r--r-- | test/replicas.zig | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/replicas.zig b/test/replicas.zig index 4adc3240..2a486db8 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -942,8 +942,13 @@ const Witness = struct { } /// A replica of dump `d`, as the soak's clients make theirs. + /// The kinds the witness's replica distrusts: it keeps a pointer to + /// them for its life (a local here was a stack slot gone by its first + /// kind's call: an index of 0xAA..., the screen-state soak's panic). + var distrusted: pardes.Addon.Distrusted = .{}; + fn load(d: *const Dump) !*replica.Replica { - var distrusted: pardes.Addon.Distrusted = .{}; + distrusted = .{}; // No client's id: every unit is another's. const rp = try replica.Replica.initDump(gpa, std.math.maxInt(u16), d.view, d.bytes, .{ .cols = d.cols, .rows = d.rows, .distrusted = &distrusted }); rp.guess = false; @@ -1772,6 +1777,11 @@ const Soak = struct { cl.r = null; } cl.tries += 1; + // The far client refused before its screen after the + // flood (a join again for its lag finds its view taken: + // a join with no room lets an away one go): said, so + // that "it left" says why. + if (net.throttled == @as(?usize, c) and !s.far_final and cl.tries == 1) std.debug.print("seed {d} rtt {d} ms: the far client refused (every view taken), {d} keys left, try {d}\n", .{ s.r.seed, s.r.rtt_ms, cl.left, cl.tries }); if (cl.left > 0 and cl.tries < 40) try net.send(.{ .at = net.cross(&net.up[c], c, m.at + 500_000, &.{}, 3), .n = 0, .kind = .dial, .who = m.who, .bytes = &.{} }) else { // Given up on: its keys are never typed. cl.dialling = false; |
