Prevents bitcoin from blocking startup due to a slow dns resolver, or a broken dnsseed.
Move DNS Seed lookup to a new thread. #654
pull TheBlueMatt wants to merge 1 commits into bitcoin:master from TheBlueMatt:dnsseed-thread changing 3 files +38 −7-
TheBlueMatt commented at 5:28 PM on November 21, 2011: member
-
Move DNS Seed lookup to a new thread. 2bc6cecebb
-
TheBlueMatt commented at 7:28 PM on November 26, 2011: member
Heh, oops...fixed.
-
in src/net.cpp:None in 2bc6cecebb
1222 | + { 1223 | + vnThreadsRunning[6]++; 1224 | + ThreadDNSAddressSeed2(parg); 1225 | + vnThreadsRunning[6]--; 1226 | + } 1227 | + catch (std::exception& e) {
sipa commented at 2:13 PM on December 1, 2011:coding style: brace on next line
TheBlueMatt commented at 3:36 PM on December 2, 2011:All of this was copied/pasted from the like 5 other similar functions in net.cpp. Though it doesnt match the existing style, its already broken in several places, so might as well be consistent...
sipa commented at 2:23 PM on December 1, 2011: memberACK
gavinandresen commented at 3:09 PM on December 2, 2011: contributorACK.
It'd be nice to change all of our threading code to use boost::threads -- I think the only reason Satoshi didn't is because he couldn't figure out how to set the thread priority. But we shouldn't care about that any more, because the internal miner is only used for -testnet testing these days...
gavinandresen referenced this in commit 43ae68b5ef on Dec 2, 2011gavinandresen merged this on Dec 2, 2011gavinandresen closed this on Dec 2, 2011coblee referenced this in commit 9fc72eea8a on Jul 17, 2012elichai referenced this in commit 461acf5c6c on Aug 22, 2019elichai referenced this in commit 69b0efd59f on Aug 22, 2019sipa referenced this in commit 6b9cd1520b on Sep 24, 2019sipa referenced this in commit 544c1f35e7 on Nov 6, 2019sipa referenced this in commit d5cd9db7a3 on Nov 19, 2019sipa referenced this in commit de659898b6 on Jan 21, 2020sipa referenced this in commit 36362dfb90 on Jan 23, 2020jnewbery referenced this in commit 85e7d06351 on Mar 17, 2020sipa referenced this in commit 4977ac14d3 on Mar 18, 2020sipa referenced this in commit 5bf7fb5baa on Mar 18, 2020sipa referenced this in commit fb2a05e468 on Mar 19, 2020sipa referenced this in commit 497fad6f09 on Mar 21, 2020sipa referenced this in commit eae016f117 on Mar 22, 2020sipa referenced this in commit 4e37a7c2cb on Mar 27, 2020jnewbery referenced this in commit 9696dea839 on Apr 16, 2020jnewbery referenced this in commit a541fd0e87 on Apr 19, 2020sipa referenced this in commit c308759ea5 on Apr 19, 2020sipa referenced this in commit 4eaec32f1c on May 2, 2020sipa referenced this in commit ef7117193c on May 22, 2020sipa referenced this in commit 67f232b5d8 on Jun 9, 2020stackman27 referenced this in commit 78cde6f8c7 on Jun 26, 2020KolbyML referenced this in commit fbfafdcad6 on Aug 2, 2020KolbyML referenced this in commit 2385e42373 on Aug 2, 2020KolbyML referenced this in commit 2cd822a06f on Nov 21, 2020rajarshimaitra referenced this in commit 60d87ac88f on Aug 5, 2021DrahtBot locked this on Sep 8, 2021Contributors
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-24 15:16 UTC
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-24 15:16 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me