net: Remove MilliSleep from StopNode #4833

pull laanwj wants to merge 1 commits into bitcoin:master from laanwj:2014_09_remove_stopnode_millisleep changing 1 files +0 −1
  1. laanwj commented at 10:24 AM on September 3, 2014: member

    I don't understand why it would be there in the first place. This looks like voodoo, not programming.

  2. net: Remove MilliSleep from StopNode
    I don't understand why it would be there in the first place. This looks
    like voodoo, not programming.
    bbda40226b
  3. jgarzik commented at 12:46 PM on September 3, 2014: contributor

    Well.... what are the 3 LOC right before the sleep? What do they do, and why would a sleep after it be a good idea?

  4. sipa commented at 12:48 PM on September 3, 2014: member

    I assume they are there to make sure no other thread is blocking on that semaphore. The sleep is probably there to give it some time to do something...

  5. laanwj commented at 12:52 PM on September 3, 2014: member

    if the sleep is important it is an awfully fragile way of doing things, there is no guarantee anything will change in those 50 milliseconds.

  6. sipa commented at 12:58 PM on September 3, 2014: member

    Seems the sleep has pretty much been there forever (much longer than the semaphore posts before it). I think we can assume that whatever reason it was there in the first place is not relevant anymore. utACK.

  7. laanwj commented at 1:03 PM on September 3, 2014: member

    Well.... what are the 3 LOC right before the sleep? What do they do, and why would a sleep after it be a good idea?

    Yess, why, that's the million bitcoin question. Too bad we can't ask Satoshi anymore.

  8. BitcoinPullTester commented at 10:05 AM on September 4, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4833_bbda40226b87ab152bc24b67a1f296857e6e465f/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  9. laanwj merged this on Sep 4, 2014
  10. laanwj closed this on Sep 4, 2014

  11. laanwj referenced this in commit 65b529ba93 on Sep 4, 2014
  12. MarcoFalke 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-04-13 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me