Skip to content

fix(relay): match charon circuit duration, require TCP addresses - #629

Merged
iamquang95 merged 1 commit into
mainfrom
feat/fix-484
Aug 13, 2026
Merged

fix(relay): match charon circuit duration, require TCP addresses#629
iamquang95 merged 1 commit into
mainfrom
feat/fix-484

Conversation

@iamquang95

Copy link
Copy Markdown
Collaborator

Fix #624

  • Circuit duration: max_circuit_duration was 1 minute; charon keeps relayed circuits for 1 hour. The 60× gap tore down every long-lived relayed circuit after 60s, forcing constant reconnect churn. Now 1 hour.
  • TCP fail-fast: charon's relay refuses to start when no TCP listen address is configured; pluto started silently and could not serve inbound TCP. pluto relay without --p2p-tcp-address now fails with charon's exact error, "p2p TCP addresses required". The check lives in the CLI config conversion (where relay flag validation lives) rather than in relay-server/src/p2p.rs, to avoid colliding with Unify TCP/QUIC transport building #621 which owns that file — every production path goes through the conversion, so nothing can reach node startup unguarded. Adding the same guard at the library boundary in p2p.rs is left to Unify TCP/QUIC transport building #621.
  • --debug-address: was parsed but silently ignored. It now errors with "flag '--debug-address' is not yet supported by pluto relay" (same pattern as run's unsupported-flag checks), rather than pretending a debug server exists.

@iamquang95
iamquang95 merged commit 92c5c77 into main Aug 13, 2026
14 checks passed
@iamquang95
iamquang95 deleted the feat/fix-484 branch August 13, 2026 04:25
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.

Improve Relay server parity with Charon

2 participants