1. 26 Apr, 2019 1 commit
  2. 24 Apr, 2019 1 commit
  3. 14 Mar, 2019 1 commit
  4. 13 Mar, 2019 1 commit
  5. 12 Mar, 2019 1 commit
  6. 27 Feb, 2019 1 commit
  7. 15 Feb, 2019 1 commit
  8. 03 Feb, 2019 1 commit
  9. 01 Feb, 2019 1 commit
  10. 31 Jan, 2019 1 commit
  11. 30 Jan, 2019 1 commit
  12. 29 Jan, 2019 3 commits
    • Raúl Kripalani's avatar
      fix shutdown logic; fix timer logic. · f2df3ec5
      Raúl Kripalani authored
      f2df3ec5
    • Raúl Kripalani's avatar
      refactor interface of Consume(). · abacfe5f
      Raúl Kripalani authored
      abacfe5f
    • Raúl Kripalani's avatar
      introduce adaptive queue for DHT dials. · 5e74c4a6
      Raúl Kripalani authored
      This patch introduces an adaptive dial queue that spawns a dynamically sized
      set of goroutines to preemptively stage dials for later handoff to the DHT
      protocol for RPC. It identifies backpressure on both ends (dial consumers and
      dial producers), and takes compensating action by adjusting the worker pool.
      
      We start with `DialQueueMinParallelism` number of workers (6), and scale up
      and down based on demand and supply of dialled peers.
      
      The following events trigger scaling:
      - we scale up when we can't immediately return a successful dial to a new
        consumer.
      - we scale down when we've been idle for a while waiting for new dial
        attempts.
      - we scale down when we complete a dial and realise nobody was waiting for it.
      
      Dialler throttling (e.g. FD limit exceeded) is a concern, as we can easily
      spin up more workers to compensate, and end up adding fuel to the fire. Since
      we have no deterministic way to detect this for now, we hard-limit concurrency
      to `DialQueueMaxParallelism` (20).
      5e74c4a6
  13. 09 Jan, 2019 1 commit
    • Gustvo Chain's avatar
      Remove outdated package documentation · 70d5802f
      Gustvo Chain authored
      Both, dht.go and dht_bootstrap.go duplicate the package documentation.
      The whole block had been moved to doc.go
      
      Also query.go provides documentation for query package but now it
      belongs to dht package, so it's been removed.
      70d5802f
  14. 27 Dec, 2018 1 commit
    • Steven Allen's avatar
      fix a potential DHT query hang · eb3e7fe9
      Steven Allen authored
      Without this, one of the workers may hang when trying to re-grab the rate-limit
      after dialing. I believe this may be what's causing some of our DHT requests to
      stall (evidence: massive goroutine buildup on the gateways).
      eb3e7fe9
  15. 07 Jun, 2018 2 commits
  16. 01 Apr, 2018 1 commit
  17. 06 Mar, 2017 1 commit
    • Jeromy's avatar
      Fixes for dht findpeer queries · 00b46e0c
      Jeromy authored
      First, we use Alpha instead of K as the number of peers we grab from the
      routing table (as per the kademlia paper).
      
      Second, we don't use a size limited set for the 'GetClosestPeers' query.
      We're going to process more than K peers before we find the K closest
      peers.
      
      Third, Change GetClosestPeers to actually return the K Closest peers,
      not a hodge podge of peers that it found on the way to finding the
      closest peers.
      00b46e0c
  18. 05 Oct, 2016 1 commit
  19. 30 Sep, 2016 2 commits
  20. 02 Sep, 2016 1 commit
  21. 21 Aug, 2016 1 commit
  22. 24 Jun, 2016 1 commit
  23. 11 Jun, 2016 1 commit
  24. 09 Jun, 2016 1 commit
  25. 01 Jun, 2016 1 commit
  26. 17 May, 2016 1 commit
  27. 10 May, 2016 1 commit
  28. 04 May, 2016 1 commit
  29. 17 Apr, 2016 2 commits
  30. 11 Apr, 2016 1 commit
  31. 07 Apr, 2016 1 commit
  32. 30 Mar, 2016 1 commit
  33. 09 Mar, 2016 1 commit
  34. 13 Feb, 2016 2 commits