Skip to content

train b65 integration gate (do not merge) - #510

Closed
roodboi wants to merge 3 commits into
nextfrom
train/b65
Closed

roodboi wants to merge 3 commits into
nextfrom
train/b65

Conversation

@roodboi

@roodboi roodboi commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Integration gate for merge batch b65: origin/next + #508 (HACK-1342). Tree 7f93f4ab. Closed after the batch squashes.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

roodboi and others added 3 commits October 24, 2026 20:00
…reap failed relay starts

HACK-1342 items 2 and 4 (item 1 is already fixed on next by #399; item 3
is left to #419).

Item 2: the relay refuses an excess connection (and one whose target is
down) by accepting and closing it, which can happen before the client's
next syscall. Once the peer has closed, macOS rejects SO_RCVTIMEO and
SO_SNDTIMEO with EINVAL, so `Relay::connect` panicked at the
`set_read_timeout`/`set_write_timeout` unwraps. The relay is correct.
The two refusal tests now use `Relay::connect_refused`, which sets no
socket timeouts: it waits for readability with a bounded poll and then
still requires EOF or a reset. A live peer or a peer that sends data
still fails the check.

Item 4: `Relay::start_options` now hands the spawned child to the
existing `PublisherStartup` guard until readiness is proven, so a failed
or panicking readiness check kills and reaps `stream-relay-host` (and
removes a fresh root) instead of orphaning it.

Refs HACK-1342

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ID (HACK-1342)

Relay test roots were named /tmp/<prefix>-<pid>-<n> and created with
create_dir().unwrap(), so a directory left by an earlier run whose PID is
now reused failed a fresh test with EEXIST. fresh_root() skips an existing
name, and every root site uses it, including the fixed-name ones.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@roodboi roodboi closed this Oct 25, 2026
@roodboi
roodboi deleted the train/b65 branch October 25, 2026 02:40
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