Skip to content

Conversation

@sanity
Copy link
Collaborator

@sanity sanity commented Nov 8, 2025

Status

Draft – still instrumenting and validating transient connection cleanup; see AGENTS.md for context.

Summary

Temporary gateway connections now

  • propagate the courtesy flag end-to-end,
  • bypass the direct-accept guard,
  • recycle via a bounded queue,
  • and log pending courtesy intent so we can debug stale handshakes.

Next steps: finish the transient-upgrade lifecycle and re-run the 50-peer River stress test once the handshake race is addressed.

Terminology note: We should standardize on the term "transient" rather than "courtesy" - which was used in #2065, please change this wherever you find it.

@sanity sanity force-pushed the stack/connect-transport-rewrite branch from ead6ba4 to d3318b5 Compare November 8, 2025 02:09
@sanity sanity force-pushed the courtesy-connection-budget branch from b2f244f to a17fa5b Compare November 8, 2025 02:15
@sanity sanity changed the title courtesy: recycle gateway courtesy links fix: recycle gateway courtesy links Nov 8, 2025
@sanity sanity force-pushed the stack/connect-transport-rewrite branch 5 times, most recently from 7bac7e5 to c518296 Compare November 12, 2025 21:26
@sanity sanity force-pushed the courtesy-connection-budget branch from a17fa5b to 0c91f8a Compare November 13, 2025 00:16
@iduartgomez iduartgomez force-pushed the stack/connect-transport-rewrite branch from c67b254 to f2a9734 Compare November 13, 2025 08:32
@sanity sanity force-pushed the stack/connect-transport-rewrite branch from f2a9734 to 2b64641 Compare November 13, 2025 16:19
@sanity sanity changed the title fix: recycle gateway courtesy links fix: recycle gateway transient/courtesy links Nov 14, 2025
Base automatically changed from stack/connect-transport-rewrite to main November 14, 2025 19:53
@sanity sanity force-pushed the courtesy-connection-budget branch from 0c91f8a to 8cac58b Compare November 14, 2025 20:46
@sanity sanity force-pushed the courtesy-connection-budget branch from 6b671e3 to 9ea33b1 Compare November 17, 2025 20:06
@sanity
Copy link
Collaborator Author

sanity commented Nov 18, 2025

Closing in favor of fresh approach with separate transient connection tracking.

The original implementation modified existing connection logic and triggered 'connection already exists' errors. After analysis, a cleaner design emerged: maintain transients in a separate registry completely distinct from connections_by_location.

New PR will follow with this approach, building on lessons learned here.

@sanity sanity closed this Nov 18, 2025
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.

2 participants