Skip to content

tailnet coordinator periodically disconnects clients & agents #7428

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

Closed
spikecurtis opened this issue May 5, 2023 · 2 comments · Fixed by #7430
Closed

tailnet coordinator periodically disconnects clients & agents #7428

spikecurtis opened this issue May 5, 2023 · 2 comments · Fixed by #7430
Assignees
Labels
s1 Bugs that break core workflows. Only humans may set this.

Comments

@spikecurtis spikecurtis added the s1 Bugs that break core workflows. Only humans may set this. label May 5, 2023
@spikecurtis spikecurtis self-assigned this May 5, 2023
@spikecurtis
Copy link
Contributor Author

spikecurtis commented May 5, 2023

So, it turns out https://github.com/nhooyr/websocket is bugged when we use SetWriteDeadline --- the next write will often fail. Prior to #7345 we only called this on client connections, but now we use it in both directions, so we're seeing agents get disconnected now. We probably didn't notice the client disconnections because a certain amount of client disconnects are of course expected.

Fix incoming.

@spikecurtis
Copy link
Contributor Author

I have to wonder whether the client disconnections that were present even before #7345 are the underlying cause for some of the flakiness we have seen in SSH, JetBrains Gateway, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s1 Bugs that break core workflows. Only humans may set this.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants