Skip to content

Conversation

@TheBlueMatt
Copy link
Contributor

We previously would block waiting for a CSemaphoreGrant, when we
did not need to.

@TheBlueMatt TheBlueMatt force-pushed the 2017-03-exit-with-addnode branch from 8ac941c to 569b6ee Compare March 8, 2017 16:27
@laanwj
Copy link
Member

laanwj commented Mar 8, 2017

utACK 569b6ee
(fix changed since I last reviewed)

@laanwj laanwj added this to the 0.14.1 milestone Mar 8, 2017
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.
@TheBlueMatt TheBlueMatt force-pushed the 2017-03-exit-with-addnode branch from 569b6ee to e007b24 Compare March 8, 2017 19:43
@TheBlueMatt
Copy link
Contributor Author

Changed the fix to post to semAddnode instead of TryAcquire.

Copy link
Contributor

@gmaxwell gmaxwell left a 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.

@theuni
Copy link
Member

theuni commented Mar 9, 2017

utACK 819b513

1 similar comment
@jonasschnelli
Copy link
Contributor

utACK 819b513

@jonasschnelli
Copy link
Contributor

Should fix: #9950

Copy link
Contributor

@gmaxwell gmaxwell left a comment

Choose a reason for hiding this comment

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

ACK.

@laanwj laanwj merged commit 819b513 into bitcoin:master Mar 13, 2017
laanwj added a commit that referenced this pull request Mar 13, 2017
819b513 Add missing braces in semaphore posts in net (Matt Corallo)
e007b24 Fix shutdown hang with >= 8 -addnodes set (Matt Corallo)

Tree-SHA512: f2d7562bd5d333cd0e80562eb3b1fe329fc10ee713996e053d2ed669db6d9eb39550e0a6c6ab768cd070bfe92a5ea85e0f752470206706de196bd4a689b9bc07
TheBlueMatt added a commit to TheBlueMatt/bitcoin that referenced this pull request Mar 17, 2017
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
TheBlueMatt added a commit to TheBlueMatt/bitcoin that referenced this pull request Mar 17, 2017
codablock pushed a commit to codablock/dash that referenced this pull request Jan 26, 2018
819b513 Add missing braces in semaphore posts in net (Matt Corallo)
e007b24 Fix shutdown hang with >= 8 -addnodes set (Matt Corallo)

Tree-SHA512: f2d7562bd5d333cd0e80562eb3b1fe329fc10ee713996e053d2ed669db6d9eb39550e0a6c6ab768cd070bfe92a5ea85e0f752470206706de196bd4a689b9bc07
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 5, 2019
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
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request Jan 5, 2019
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
819b513 Add missing braces in semaphore posts in net (Matt Corallo)
e007b24 Fix shutdown hang with >= 8 -addnodes set (Matt Corallo)

Tree-SHA512: f2d7562bd5d333cd0e80562eb3b1fe329fc10ee713996e053d2ed669db6d9eb39550e0a6c6ab768cd070bfe92a5ea85e0f752470206706de196bd4a689b9bc07
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 27, 2019
819b513 Add missing braces in semaphore posts in net (Matt Corallo)
e007b24 Fix shutdown hang with >= 8 -addnodes set (Matt Corallo)

Tree-SHA512: f2d7562bd5d333cd0e80562eb3b1fe329fc10ee713996e053d2ed669db6d9eb39550e0a6c6ab768cd070bfe92a5ea85e0f752470206706de196bd4a689b9bc07
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants