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

Modify close behavior to block until a satellite sends a response #223

Merged
merged 14 commits into from
Nov 28, 2019

Conversation

rnburn
Copy link
Contributor

@rnburn rnburn commented Nov 28, 2019

Fixes #219

std::mutex shutdown_mutex_;
std::condition_variable shutdown_condition_variable_;
std::atomic<int> shutdown_counter_{0};
bool last_is_active_{true};
Copy link
Member

Choose a reason for hiding this comment

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

I had a bit of trouble following what this variable does. Could you add a comment? Maybe add a comment on ShutdownWithTimeout to explain why it can fail even without a timeout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment

@rnburn rnburn merged commit 6692599 into lightstep:master Nov 28, 2019
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.

"Aggressive" disconnects from the streaming tracer at shutdown time.
2 participants