Fix shutdown hang with >= 8 -addnodes set #9953

pull TheBlueMatt wants to merge 2 commits into bitcoin:master from TheBlueMatt:2017-03-exit-with-addnode changing 1 files +10 −6
  1. TheBlueMatt commented at 4:26 PM on March 8, 2017: contributor

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

  2. TheBlueMatt force-pushed on Mar 8, 2017
  3. TheBlueMatt cross-referenced this on Mar 8, 2017 from issue v0.14.0 shutdown hangs by Celean
  4. laanwj commented at 4:38 PM on March 8, 2017: member
  5. laanwj added the label Needs backport on Mar 8, 2017
  6. laanwj added the label P2P on Mar 8, 2017
  7. laanwj added this to the milestone 0.14.1 on Mar 8, 2017
  8. Fix shutdown hang with >= 8 -addnodes set
    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.
    e007b243c4
  9. TheBlueMatt force-pushed on Mar 8, 2017
  10. TheBlueMatt commented at 7:44 PM on March 8, 2017: contributor

    Changed the fix to post to semAddnode instead of TryAcquire.

  11. Add missing braces in semaphore posts in net 819b513a54
  12. gmaxwell approved
  13. gmaxwell commented at 8:11 PM on March 8, 2017: contributor

    utACK. (will test) Thanks.

  14. theuni commented at 1:30 AM on March 9, 2017: member

    utACK 819b513a5415d1669b5440e214862cda6c2261f8

  15. jonasschnelli commented at 7:56 AM on March 9, 2017: contributor

    utACK 819b513a5415d1669b5440e214862cda6c2261f8

  16. jonasschnelli commented at 10:06 AM on March 10, 2017: contributor

    Should fix: #9950

  17. gmaxwell approved
  18. gmaxwell commented at 7:51 PM on March 12, 2017: contributor

    ACK.

  19. laanwj merged this on Mar 13, 2017
  20. laanwj closed this on Mar 13, 2017

  21. laanwj referenced this in commit f8a709161f on Mar 13, 2017
  22. bitkevin cross-referenced this on Mar 16, 2017 from issue v0.14.0 node shutdown failure by bitkevin
  23. TheBlueMatt cross-referenced this on Mar 16, 2017 from issue Fix shutdown hang with >= 8 -addnodes set (0.14 backport) by TheBlueMatt
  24. TheBlueMatt referenced this in commit d2548a4f97 on Mar 17, 2017
  25. TheBlueMatt referenced this in commit 4e2502bb51 on Mar 17, 2017
  26. MarcoFalke removed the label Needs backport on Mar 27, 2017
  27. codablock referenced this in commit 4321788cc9 on Jan 26, 2018
  28. lateminer referenced this in commit 6a311073e0 on Jan 5, 2019
  29. lateminer referenced this in commit 560bc72a6d on Jan 5, 2019
  30. andvgal referenced this in commit b209acc89f on Jan 6, 2019
  31. CryptoCentric referenced this in commit 86c678fa97 on Feb 27, 2019
  32. furszy cross-referenced this on May 14, 2021 from issue Net code updates [Step 2] by furszy
  33. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC