Skip to content

feat: support graceful disconnect in PGCoordinator #10937

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

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Nov 29, 2023

Adds support for graceful disconnect to PGCoordinator. When peers gracefully disconnect, they send a disconnect message. This triggers the peer to be disconnected from all tunneled peers.

The Multi-Agent Client supports graceful disconnect, since it is in memory and we know that when it is closed, we really mean to disconnect.

The v1 agent and client Websocket connections do not support graceful disconnect, since the v1 protocol doesn't have this feature. That means that if a v1 peer connects to a v2 peer, when the v1 peer's coordinator connection is closed, the v2 peer will
see it as "lost" since we don't know whether the v1 peer meant to disconnect, or it just lost connectivity to the coordinator.

Base automatically changed from spike/pgcoord-v2-status-query to main November 29, 2023 12:53
@spikecurtis spikecurtis force-pushed the 11-29-feat_support_graceful_disconnect_in_PGCoordinator branch from a6dfa38 to 44ab030 Compare November 29, 2023 12:56
@spikecurtis spikecurtis force-pushed the 11-29-feat_support_graceful_disconnect_in_PGCoordinator branch from 44ab030 to a000e63 Compare November 30, 2023 08:23
@spikecurtis spikecurtis merged commit 0cab6e7 into main Dec 1, 2023
@spikecurtis spikecurtis deleted the 11-29-feat_support_graceful_disconnect_in_PGCoordinator branch December 1, 2023 05:55
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants