diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-23 04:21:13 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-23 07:28:22 -0300 |
| commit | 396247178d20678a36e9e1782c2a457eeb1916de (patch) | |
| tree | 80d9b7d21cdcd64b2b246eae92c6f817f3a882e8 /runtime | |
| parent | 3a0acb503613a672c3d84f685031ab5e65c10ff6 (diff) | |
| download | pardes-396247178d20678a36e9e1782c2a457eeb1916de.tar.gz pardes-396247178d20678a36e9e1782c2a457eeb1916de.zip | |
link: a far client that falls behind dials again, as before round 1 (the coordinator's ruling P63a): `Link.backHere` says no for a link that crosses machines (`Link.far`, set by runtime/client.zig from its `Have`) and fell behind `behind_max_ms`, so that client says its goodbye, shuts its link and dials again through the daemon, a new connection that drops what the old one holds for it; every other way back (a divergence, a near lag, a cut, a refused load's ask) stays on the link; marked in the code as the second road it is, with what replaces it (bounded flight: the session never more than a window past what its client has taken); the failing row first: test/daemon.py `--far` on ReleaseSafe 6 of 7 on round 1's tree (`far_flood`: over its own link the far client read through all the relay held for it, agreeing 49-68 s after `yes` against 22.7 s by a dial); `far_flood` now asserts the far client behind took ANOTHER connection; the lag test asserts both roads (`backHere` near yes, far no) ; gated with the next change as its tree (g1, rnllpvzw fd3730201cb3): `--far` on ReleaseSafe 7 of 7, far_flood ANOTHER connection each time and agreed 22.3-26.0 s after `yes` ended (Debug 25.3 s), every other row as before: core-test 931/1095 (164 skipped), shell-test 1137/1140 (3 skipped), process-test 0 of 146 failed both ways, the soak x3 and --pair x3 clean, daemon.py every mode on both builds, the upgrades 12 of 12, frames 77/77 and 121 counts within 0.1% against tree6, the cross-builds
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/client.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/client.zig b/runtime/client.zig index 2fbc75c8..1d348aea 100644 --- a/runtime/client.zig +++ b/runtime/client.zig @@ -175,7 +175,7 @@ pub fn Loop(comptime Frontend: type) type { frames: *pardes.FrameStats, pub fn init(fe: *Frontend, s: *Start) !L { - var l: L = .{ .link = .{ .r = s.r, .fd = s.joined.fd }, .fe = fe, .frames = &s.frames }; + var l: L = .{ .link = .{ .r = s.r, .fd = s.joined.fd, .far = s.have != null }, .fe = fe, .frames = &s.frames }; try l.link.fromEnv(s.gpa, s.env); return l; } |
