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: debugging #2536

Merged
merged 2 commits into from
Dec 27, 2018
Merged

example: debugging #2536

merged 2 commits into from
Dec 27, 2018

Conversation

lyuxuan
Copy link
Contributor

@lyuxuan lyuxuan commented Dec 22, 2018

fixes #2491

examples/features/debugging/client/main.go Show resolved Hide resolved
examples/features/debugging/client/main.go Outdated Show resolved Hide resolved

/***** Wait for CTRL+C to exit *****/
ch := make(chan os.Signal, 1)
signal.Notify(ch, os.Interrupt)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as client.
And we don't really care about cleanup since the program exits.

You can also start channelz server last, so the last line can be s.Serve(lis).

examples/features/debugging/README.md Show resolved Hide resolved
@lyuxuan lyuxuan merged commit 0a3dc64 into grpc:master Dec 27, 2018
@menghanl menghanl added the Type: Documentation Documentation or examples label Jan 3, 2019
@menghanl menghanl added this to the 1.18 Release milestone Jan 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Documentation Documentation or examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples: debugging
2 participants