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
  1. TheBlueMatt commented at 5:28 PM on November 21, 2011: member

    Prevents bitcoin from blocking startup due to a slow dns resolver, or a broken dnsseed.

  2. Move DNS Seed lookup to a new thread. 2bc6cecebb
  3. TheBlueMatt commented at 7:28 PM on November 26, 2011: member

    Heh, oops...fixed.

  4. 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...

  5. sipa commented at 2:23 PM on December 1, 2011: member

    ACK

  6. gavinandresen commented at 3:09 PM on December 2, 2011: contributor

    ACK.

    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...

  7. gavinandresen referenced this in commit 43ae68b5ef on Dec 2, 2011
  8. gavinandresen merged this on Dec 2, 2011
  9. gavinandresen closed this on Dec 2, 2011

  10. coblee referenced this in commit 9fc72eea8a on Jul 17, 2012
  11. elichai referenced this in commit 461acf5c6c on Aug 22, 2019
  12. elichai referenced this in commit 69b0efd59f on Aug 22, 2019
  13. sipa referenced this in commit 6b9cd1520b on Sep 24, 2019
  14. sipa referenced this in commit 544c1f35e7 on Nov 6, 2019
  15. sipa referenced this in commit d5cd9db7a3 on Nov 19, 2019
  16. sipa referenced this in commit de659898b6 on Jan 21, 2020
  17. sipa referenced this in commit 36362dfb90 on Jan 23, 2020
  18. jnewbery referenced this in commit 85e7d06351 on Mar 17, 2020
  19. sipa referenced this in commit 4977ac14d3 on Mar 18, 2020
  20. sipa referenced this in commit 5bf7fb5baa on Mar 18, 2020
  21. sipa referenced this in commit fb2a05e468 on Mar 19, 2020
  22. sipa referenced this in commit 497fad6f09 on Mar 21, 2020
  23. sipa referenced this in commit eae016f117 on Mar 22, 2020
  24. sipa referenced this in commit 4e37a7c2cb on Mar 27, 2020
  25. jnewbery referenced this in commit 9696dea839 on Apr 16, 2020
  26. jnewbery referenced this in commit a541fd0e87 on Apr 19, 2020
  27. sipa referenced this in commit c308759ea5 on Apr 19, 2020
  28. sipa referenced this in commit 4eaec32f1c on May 2, 2020
  29. sipa referenced this in commit ef7117193c on May 22, 2020
  30. sipa referenced this in commit 67f232b5d8 on Jun 9, 2020
  31. stackman27 referenced this in commit 78cde6f8c7 on Jun 26, 2020
  32. KolbyML referenced this in commit fbfafdcad6 on Aug 2, 2020
  33. KolbyML referenced this in commit 2385e42373 on Aug 2, 2020
  34. KolbyML referenced this in commit 2cd822a06f on Nov 21, 2020
  35. rajarshimaitra referenced this in commit 60d87ac88f on Aug 5, 2021
  36. DrahtBot 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-24 15:16 UTC

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