Skip to content

v3: fix websocket timeouts #1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 17, 2024
Merged

v3: fix websocket timeouts #1220

merged 11 commits into from
Jul 17, 2024

Conversation

nicktrn
Copy link
Collaborator

@nicktrn nicktrn commented Jul 16, 2024

WebSockets could previously time out when no messages were sent for a period of 60s. This is due to load balancer connection timeouts. The only real fix here was to add a ping / pong mechanism that will keep connections alive during periods of rest, e.g. when waiting within or between attempts.

Pings will be automatically sent from the server every 45s. Clients will reply with pongs, but we just log those for now.

Whenever a dev CLI disconnects it will also cancel all in-progress dev runs. This shouldn't happen anymore.

This fix also prevents uncaught exceptions related to schema parsing.

Copy link

changeset-bot bot commented Jul 16, 2024

🦋 Changeset detected

Latest commit: a117dcb

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nicktrn nicktrn merged commit dbda820 into main Jul 17, 2024
2 checks passed
@nicktrn nicktrn deleted the v3/fix-websocket-timeouts branch July 17, 2024 08:05
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