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

Example client handle close #48

Closed
wants to merge 2 commits into from
Closed

Conversation

mehaase
Copy link
Contributor

@mehaase mehaase commented Oct 11, 2018

This is one possible solution to #22: add an optional cancel_scope argument to client connections. When the connection is closed, the scope is cancelled. This allows, among other things, the example client to exit immediately when the server closes the connection. Previously, the example client would block on waiting for command line input and would not notice the connection dropped until it tried to perform the next command.

This optional scope is cancelled when the connection is closed.
If the server closes the connection, the client will quit immediately
rather than waiting for the next user command on stdin.
@mehaase
Copy link
Contributor Author

mehaase commented Oct 23, 2018

Closing this because I merged #55 as the preferred alternative to this PR.

@mehaase mehaase closed this Oct 23, 2018
@mehaase mehaase deleted the example_client_handle_close branch October 25, 2018 13:46
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.

1 participant