1. 11 Dec, 2019 1 commit
  2. 10 Dec, 2019 1 commit
    • Steven Allen's avatar
      feat: refresh and wait · 0be0cbc5
      Steven Allen authored
      We'd like to be able to refresh then _wait_ for the refresh to finish in the testground DHT tests. That way, we can:
      
      1. Start and disable _auto_ refresh.
      2. Bootstrap.
      3. Refresh a couple of times till we're stable.
      4. Wait to _stop_ refreshing.
      5. Disconnect from and forget about all peers _not_ in our routing tables.
      6. Run the actual tests without interference from the bootstrapping logic.
      0be0cbc5
  3. 05 Nov, 2019 3 commits
    • Steven Allen's avatar
      chore: rename bootstrap to refresh · ef319676
      Steven Allen authored
      As pointed out by raul, bootstrapping and refreshing are not the same thing.
      Bootstrapping is the initial setup (i.e., connect to some initial nodes to get
      started). Refreshing is the process of refreshing the routing table.
      ef319676
    • Steven Allen's avatar
      feat(bootstrap): simplify bootstrapping · ed244cd4
      Steven Allen authored
      * Rename triggerAutoBootstrap to autoBootstrap. This variable used to control
      _triggering_ only but now completely disables automatic bootstrapping.
      * Remove the BootstrapConfig. We introduced this before we switched to
      functional options. Now that we're breaking the interfaces anyways, we might as
      well use functional options all the way (easier to extend).
      * Always query self (feedback from @raulk).
      * Important: don't abort the bootstrap process if we timeout finding ourselves.
      ed244cd4
    • Steven Allen's avatar
      98cf9149
  4. 01 Nov, 2019 1 commit
  5. 11 Oct, 2019 1 commit
    • Aarsh Shah's avatar
      Update dht_bootstrap.go · 00fffba0
      Aarsh Shah authored
      1) on connecting to a new peer  -> trigger self & bucket bootstrap if RT size goes below thereshold
      2) accept formatting & doc suggestions in the review
      3) remove RT recovery code for now -> will address in a separate PR once #383 goes in
      
      changes as per review
      00fffba0
  6. 26 May, 2019 1 commit
  7. 05 Jun, 2018 1 commit
  8. 01 Jun, 2018 1 commit
  9. 01 Apr, 2018 1 commit
  10. 08 Jan, 2018 2 commits
  11. 07 Jan, 2018 1 commit
    • Steven Allen's avatar
      fix connection tracking race · 36ae474b
      Steven Allen authored
      Before, we could end up (e.g.):
      
      1. Creating two connections (both sides connect at the same time).
      2. Try to test with the first one.
      3. The first connection dies.
      4. Get a stream reset and think that the other side doesn't support the DHT
      protocol.
      
      We tried to fix this by checking for an EOF. Unfortunately, reset streams don't
      return EOFs.
      
      This commit also simplifies peer tracking (and saves a bit of memory).
      
      fixes #99
      36ae474b
  12. 28 Oct, 2017 1 commit
  13. 19 Oct, 2017 1 commit
  14. 19 Sep, 2017 1 commit
  15. 27 Jul, 2017 4 commits
  16. 26 Jul, 2017 1 commit
  17. 18 Jan, 2017 1 commit
  18. 10 Jan, 2017 1 commit
  19. 05 Oct, 2016 1 commit
  20. 24 Sep, 2016 1 commit
  21. 02 Sep, 2016 1 commit
  22. 21 Aug, 2016 1 commit
  23. 04 Jul, 2016 1 commit
  24. 24 Jun, 2016 1 commit
  25. 15 Jun, 2016 1 commit
  26. 11 Jun, 2016 1 commit
  27. 07 Jun, 2016 1 commit
  28. 01 Jun, 2016 1 commit
  29. 31 May, 2016 1 commit
  30. 17 May, 2016 1 commit
  31. 16 May, 2016 1 commit
  32. 13 May, 2016 1 commit
  33. 10 May, 2016 1 commit
  34. 27 Apr, 2016 1 commit