Skip to content
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

Graceful disconnect to remote Management Host #173603

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MarkZuber
Copy link
Contributor

Issue: #173602

This PR adds a sendDisconnectAndWait() method to the PersistentProtocol class that calls through to the ProtocolWriter with a new WriteImmediately() method to send the disconnect message from the client synchronously during client shutdown. This ensures the Management connection gets the disconnect message which could be lost of the protocol doesn't flush all messages to the server.

@alexdima - As we discussed earlier, it would be great to get an integration test in place for this. I wasn't clear on where would be the best place to write an integraiton test and control the app shutdown as well as verifying that the message made its way to the server behind the test resolver. Let me know if you have a pointer to an existing test I could use as a reference or if we need to create something new.

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.

5 participants