Skip to content

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

Merged
rnburn merged 14 commits into
lightstep:masterfrom
rnburn:clean-close
Nov 28, 2019
Merged

Modify close behavior to block until a satellite sends a response#223
rnburn merged 14 commits into
lightstep:masterfrom
rnburn:clean-close

Conversation

@rnburn
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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
Copy Markdown
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