diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 14:01:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 14:01:03 -0300 |
| commit | 8caed8e7d894fee836c95f2ca83fda9b22e1db84 (patch) | |
| tree | 322054aec46e28bc4a9d2a864977f2ebc5a49165 /dev/Ptys.zig | |
| parent | 159fc78fc8d350f0f40f7f2fcf344377034c8f2f (diff) | |
| download | pardes-8caed8e7d894fee836c95f2ca83fda9b22e1db84.tar.gz pardes-8caed8e7d894fee836c95f2ca83fda9b22e1db84.zip | |
replica: a client's own join again is judged after its goodbye (pardes-term-join-9, item 1 (a)): a client let go for its lag or after a divergence says bye, shuts its link and dials again naming its view (runtime/client.zig `run`), and the session takes its join from the daemon's hand-over and its bye from the old link's reader thread, in no order between them; judged first, `viewFor` found the view not away and opened a NEW one (the client's layout, scroll and focus lost, its old view then kept away 30 s for nobody), or at the cap refused it (a divergence's rejoin is not patient and then fails "could not join again"); now a join naming a view whose link has hung up (`hungUp`: POLLHUP or POLLRDHUP, the client having shut its link before it dialled) is held on that peer (`Peer.rejoin`) and posted again when the link is let go (`letGo`), its view away by then, a view whose link is up being another client's as before, and a Restore keeps a held join as it keeps the inbox's; measured with a raw replica that says bye and at once joins again naming its view, pinned to one CPU: the base 1 of 60 in another view and 27 refused, this 0 of 120; the cut-off test dials again before its old link's end is heard (fails on the base with `error.NotHeld`); root.zig's machine_lines for replica.zig 73 -> 76 (the session's own join, no replayed step); not covered: a relay that delays each connection on its own (test/delay_relay.py) can still bring the hello before the old link's hang-up
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/Ptys.zig')
0 files changed, 0 insertions, 0 deletions
