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

mining: Prevent potential shutdown hang. #2196

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented May 5, 2020

This is rebased on #2195.

This modifies the background block template generator to ensure all regen even sends respect the context shutdown state to prevent a potential hang on shutdown when the underlying goroutines go away.

@davecgh davecgh added this to the 1.6.0 milestone May 5, 2020
mining.go Outdated Show resolved Hide resolved
@davecgh davecgh force-pushed the mining_prevent_potential_bgblktplgenerator_shutdown_hang branch from 96b2827 to d6ab29b Compare May 8, 2020 11:07
This modifies the background block template generator to ensure all
regen even sends respect the context shutdown state to prevent a
potential hang on shutdown when the underlying goroutines go away.
@davecgh davecgh force-pushed the mining_prevent_potential_bgblktplgenerator_shutdown_hang branch from d6ab29b to 94fd8fb Compare May 8, 2020 16:32
@davecgh davecgh merged commit 94fd8fb into decred:master May 8, 2020
@davecgh davecgh deleted the mining_prevent_potential_bgblktplgenerator_shutdown_hang branch May 8, 2020 16:34
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.

None yet

3 participants