Skip to content

transport: an unanswered hello goes again after 1 s; the goodbye goes three times - #103

Merged
lucas-romanenko merged 4 commits into
mainfrom
transport/hello-retry
Nov 24, 2026
Merged

lucas-romanenko merged 4 commits into
mainfrom
transport/hello-retry

Conversation

@lucas-romanenko

@lucas-romanenko lucas-romanenko commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #102. Merge the stack below first.

What. An unanswered hello goes again after HELLO_RETRY (1 s), then every HELLO_RETRY_MAX (2 s). It is the same hello, and the silence window is not moved. The goodbye now goes GOODBYES (3) times. The fake switcher in the matrix also gets a fix: it gave every session the same id.

Why. The hello went only on the silence tick, every 5 s. A lost hello or a lost answer on a lossy link cost 5 s, and two in a row failed a connect. After a pulled cable or a reboot, the session came back up to 5 s after the switcher could answer. The goodbye was one datagram, and one lost left the session on the switcher until it reaped it, which takes one of its five sessions.

Before / after (network matrix, 3 runs, seconds):

1.14.7 this
cable out 8 s on an idle session, back after (LAN / 200 ms / VPN) 10.0 / 10.5 / 10.3 8.54 / 8.54 / 8.54
the same at 5 % loss 10.2, 10.2, 15.2 8.5, 10.2, 13.3
switcher reboots (8 s) mid-upload, reconnected and next upload done (LAN) 12.5 9.6
5 connects and goodbyes: sessions left behind (5 % loss / VPN) 1 in 3 runs each none in 6

Tests. test_hello_again.py has 4 tests; the hello-again and three-goodbyes tests fail with the change taken out. The existing goodbye-count assertions now use GOODBYES. Full suite: 1916 passed.

SURFACE §5.4 item 69.

🤖 Generated with Claude Code

@lucas-romanenko
lucas-romanenko force-pushed the transport/commands-too-big branch from ee368d6 to ef0d5e8 Compare November 23, 2026 22:59
@lucas-romanenko
lucas-romanenko force-pushed the transport/hello-retry branch 2 times, most recently from d854a9a to fa96b56 Compare November 24, 2026 18:19
@lucas-romanenko
lucas-romanenko force-pushed the transport/commands-too-big branch from ef0d5e8 to 8ce437f Compare November 24, 2026 18:19
lucas-romanenko added a commit that referenced this pull request Nov 24, 2026
The goodbye goes three times since #103, so a lossy link no longer leaves
a session to the switcher's reaper; #99 checked lossless links only for
1.14.8's single goodbye.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lucas-romanenko and others added 4 commits November 24, 2026 13:22
It gave every session the same id (a mask on an odd number), so a client
that re-handshook got a session with its old id and rightly dropped its
packets as the old session's. The units number sessions upward.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… three times

The hello went only on the silence tick, every 5 s: a hello or its
answer lost cost 5 s, and after a pulled cable or a reboot the session
came back up to 5 s after the switcher could answer. Now it goes again
after HELLO_RETRY (1 s), then every HELLO_RETRY_MAX (2 s). An 8 s cut:
back after 8.5 s instead of 10.0 (15.2 once at 5 % loss).

The goodbye was one datagram, and one lost left the session on the
switcher until it reaped it (1 in 3 of five connect/disconnects at 5 %
loss); it now goes GOODBYES (3) times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
WebATEM #63's link: 80 ms, datagrams over 1,280 bytes (IP) dropped
towards the switcher, and the switcher sending every 0.5 s instead of a
Constellation's 40 ms (the fake's tick, now a setting). bmdwire 1.14.8
never finished a still upload over it (#100).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lucas-romanenko added a commit that referenced this pull request Nov 24, 2026
The goodbye goes three times since #103, so a lossy link no longer leaves
a session to the switcher's reaper; #99 checked lossless links only for
1.14.8's single goodbye.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lucas-romanenko
lucas-romanenko changed the base branch from transport/commands-too-big to main November 24, 2026 18:44
@lucas-romanenko
lucas-romanenko merged commit 4e06c0f into main Nov 24, 2026
18 checks passed
This was referenced Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant