1. 16 Jun, 2020 1 commit
  2. 09 Jun, 2020 4 commits
  3. 05 Jun, 2020 2 commits
    • Steven Allen's avatar
      Merge pull request #965 from libp2p/fix/panic · ed4bd39d
      Steven Allen authored
      Fix peer handler race
      ed4bd39d
    • Steven Allen's avatar
      Fix peer handler race · 34e67e01
      Steven Allen authored
      Alternative to #963. Instead of using atomics, this patch ensures that all state
      changes are performed on the main thread. It also:
      
      * Threads the context through explicitly to make sure fields changed by the main
      thread are never read by the handler goroutines. This isn't strictly necessary
      but it makes it easier to reason about.
      * Uses a callback to signal "on done". There may be cleaner ways to do this (I
      hate callbacks), but this nicely decouples the peer handler from the main loop.
      
      fixes #963
      34e67e01
  4. 04 Jun, 2020 9 commits
  5. 03 Jun, 2020 8 commits
  6. 29 May, 2020 2 commits
  7. 28 May, 2020 1 commit
  8. 27 May, 2020 2 commits
    • Steven Allen's avatar
      be70fa24
    • Steven Allen's avatar
      fix: remove old addresses in identify immediately · 59062c6d
      Steven Allen authored
      Previously, we'd keep addresses discovered through the DHT for up to 2
      minutes (temporary TTL) and previously seen addresses (recently connected) for
      up to 10 minutes (the TTL).
      
      1. Make sure to downgrade both connected and recently connected addresses to the
      "temporary" ttl before adding new addresses.
      2. Finally, downgrade addresses with the temporary TTL to 0.
      
      This could be more efficient with a better peerstore abstraction, but this is
      better than nothing.
      59062c6d
  9. 21 May, 2020 1 commit
  10. 20 May, 2020 10 commits