I don't understand why it would be there in the first place. This looks like voodoo, not programming.
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-
laanwj commented at 10:24 AM on September 3, 2014: member
-
bbda40226b
net: Remove MilliSleep from StopNode
I don't understand why it would be there in the first place. This looks like voodoo, not programming.
-
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?
-
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...
-
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.
-
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.
-
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.
-
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.
- laanwj merged this on Sep 4, 2014
- laanwj closed this on Sep 4, 2014
- laanwj referenced this in commit 65b529ba93 on Sep 4, 2014
- MarcoFalke locked this on Sep 8, 2021