-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Fix shutdown hang with >= 8 -addnodes set #9953
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
Conversation
8ac941c to
569b6ee
Compare
|
|
We previously would block waiting for a CSemaphoreGrant in ThreadOpenAddedConnections, when we did not need to. This would block as the posts in CConnman shutdown were both to the wrong semaphore and in the wrong location.
569b6ee to
e007b24
Compare
|
Changed the fix to post to semAddnode instead of TryAcquire. |
gmaxwell
left a comment
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.
utACK. (will test) Thanks.
|
utACK 819b513 |
1 similar comment
|
utACK 819b513 |
|
Should fix: #9950 |
gmaxwell
left a comment
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.
ACK.
We previously would block waiting for a CSemaphoreGrant in ThreadOpenAddedConnections, when we did not need to. This would block as the posts in CConnman shutdown were both to the wrong semaphore and in the wrong location. Github-Pull: bitcoin#9953 Rebased-From: e007b24
Github-Pull: bitcoin#9953 Rebased-From: 819b513
We previously would block waiting for a CSemaphoreGrant in ThreadOpenAddedConnections, when we did not need to. This would block as the posts in CConnman shutdown were both to the wrong semaphore and in the wrong location. Github-Pull: bitcoin#9953 Rebased-From: e007b24
Github-Pull: bitcoin#9953 Rebased-From: 819b513
We previously would block waiting for a CSemaphoreGrant, when we
did not need to.