Skip to content

fix(connlib): apply timeout to WebSocket connection to portal - #7265

Merged
thomaseizinger merged 2 commits into
mainfrom
fix/tcp-connect-timeout
Nov 5, 2024
Merged

fix(connlib): apply timeout to WebSocket connection to portal#7265
thomaseizinger merged 2 commits into
mainfrom
fix/tcp-connect-timeout

Conversation

@thomaseizinger

@thomaseizinger thomaseizinger commented Nov 5, 2024

Copy link
Copy Markdown
Member

The issue in #7254 and #7200 appears to be that eventually, we fail to connect to the portal because we stop re-trying, i.e. the socket connect appears to hang forever. Perhaps there is race condition somewhere in how we resolve DNS / flush DNS servers etc. Regardless of that, connecting to the portal should never take more than 5s so timing out after that ensures we retry the connection.

Resolves: #7254.
Resolves: #7200.

@vercel

vercel Bot commented Nov 5, 2024

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 Nov 5, 2024 5:51am

@thomaseizinger thomaseizinger changed the title Timeout TCP connection fix(connlib): apply timeout to WebSocket connection to portal Nov 5, 2024
@thomaseizinger
thomaseizinger marked this pull request as ready for review November 5, 2024 05:51
@thomaseizinger
thomaseizinger added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit 9d7a597 Nov 5, 2024
@thomaseizinger
thomaseizinger deleted the fix/tcp-connect-timeout branch November 5, 2024 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants