-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 shutdown fix #668
Conversation
71d07e0
to
9e0ead1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable, just some small nits
698c779
to
73c7f81
Compare
@kradalby I additionally decomposed |
f323992
to
24a32a9
Compare
Can you separate this into a different PR? |
80f48ac
to
d51c47b
Compare
This reverts commit 395caaa.
d51c47b
to
56858a5
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one minor thing to be fixed.
LGTM! |
There's few problems with a graceful shutdown that i tried to fix with this PR.
shutdownChan
channel that was used to finishPollNetMapStream
didn't work if noPollNetMapStream
was running at the time of shutdown. Also, it could stop only singlePollNetMapStream
routine, as single value was passed to channel instead of closing it.