Skip to content

fix(connlib): resend candidates on connection upsert - #9986

Merged
thomaseizinger merged 4 commits into
mainfrom
fix/resend-candidates-reuse-connection
Jul 24, 2025
Merged

fix(connlib): resend candidates on connection upsert#9986
thomaseizinger merged 4 commits into
mainfrom
fix/resend-candidates-reuse-connection

Conversation

@thomaseizinger

Copy link
Copy Markdown
Member

Due to network partitions between the Client and the Portal, it is possible that a Client requests a new connection, then disconnects from the portal and re-requests the connection once it is reconnected.

On the Gateway, we would have already authorized the first request and initialise our ICE agents with our local candidates. The second time around, the connection would be reused. The Client however has lost its state and therefore, we need to tell it our candidates again.

@thomaseizinger
thomaseizinger requested a review from jamilbk July 24, 2025 06:14
@vercel

vercel Bot commented Jul 24, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
firezone ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2025 8:49pm

@thomaseizinger
thomaseizinger enabled auto-merge July 24, 2025 06:14

@jamilbk jamilbk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This flaky control plane connection really stress tests all of our state tracking.

Signed-off-by: Thomas Eizinger <thomas@eizinger.io>
@thomaseizinger

Copy link
Copy Markdown
Member Author

Good catch. This flaky control plane connection really stress tests all of our state tracking.

Yep, for sure does 😅

@thomaseizinger
thomaseizinger added this pull request to the merge queue Jul 24, 2025
Merged via the queue into main with commit aebfcd5 Jul 24, 2025
106 checks passed
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