1. 24 Oct, 2018 1 commit
    • Steven Allen's avatar
      don't disconnect on protocol version mismatch · dd7868a1
      Steven Allen authored
      Sending a protocol version is nice. However, this "disconnect if our versions
      are different" logic makes the version entirely useless (because we can't change
      it).
      
      Really, each indevidual protocol is versioned so let's just leave it at that. If
      we make a breaking change that requires a protocol bump, we can do that and
      then switch on the other side's version. However, we'll have to wait for the
      entire network to upgrade for that to work.
      dd7868a1
  2. 19 Oct, 2018 2 commits
  3. 29 Sep, 2018 1 commit
  4. 26 Sep, 2018 3 commits
  5. 21 Sep, 2018 1 commit
  6. 10 Sep, 2018 1 commit
  7. 09 Aug, 2018 1 commit
  8. 08 Aug, 2018 1 commit
  9. 27 Jul, 2018 1 commit
  10. 15 Jun, 2018 1 commit
    • Steven Allen's avatar
      reduce error to warning and log the error · b4428fda
      Steven Allen authored
      This happens all the time in tests where we intentionally use fake keys for
      performance.
      
      Anyways, users probably don't want their logs spammed with errors they can't do
      anything about.
      b4428fda
  11. 05 Jun, 2018 1 commit
  12. 28 Jan, 2018 1 commit
  13. 20 Jan, 2018 3 commits
    • Steven Allen's avatar
      add test for forgetting address records · d7c4c0a2
      Steven Allen authored
      d7c4c0a2
    • Steven Allen's avatar
      register identify service netNotify · ea95a94e
      Steven Allen authored
      This way, we actually process disconnect notifications (and reduce the lifetime
      on peer addr records).
      ea95a94e
    • Steven Allen's avatar
      fix peerstore apocalypse redux · 096a2c83
      Steven Allen authored
      This commit prevents us from repeatedly extending the lifetimes of all observed
      addresses if a peer keeps on reconnecting.
      
      It also fixes two race conditions:
      
      1. We may end up processing a disconnect after a re-connect and may
      accidentally give the addresses associated with that peer a
      RecentlyConnectedAddrTTL instead of a ConnectedAddrTTL.
      
      2. We may end up processing a connect after the associated disconnect storing
      the associated peer addresses indefinitely.
      096a2c83
  14. 13 Sep, 2017 1 commit
  15. 31 May, 2017 1 commit
    • Lars Gierth's avatar
      basichost: refactor BasicHost construction · f0453a24
      Lars Gierth authored
      There were previously 4 different ways of passing various options
      into BasicHost construction.
      
      1. Function parameters to New
      2. Option parameters to New
      3. Global variables, e.g. NegotiateTimeout
      4. Options struct, in the calling code in go-ipfs
      
      This changeset deprecated all of these, and introduces the HostOpts
      struct to replace them. It also introduces a new constructor called
      NewHost, which accepts a *HostOpts.
      
      The old New constructor continues to work the same way,
      but is from now on deprecated too.
      f0453a24
  16. 24 Apr, 2017 3 commits
  17. 12 Mar, 2017 1 commit
  18. 10 Jan, 2017 1 commit
  19. 05 Jan, 2017 1 commit
  20. 26 Dec, 2016 1 commit
  21. 18 Nov, 2016 1 commit
  22. 17 Nov, 2016 1 commit
  23. 10 Nov, 2016 1 commit
  24. 05 Nov, 2016 1 commit
  25. 25 Oct, 2016 1 commit
  26. 05 Oct, 2016 2 commits
  27. 04 Oct, 2016 3 commits
  28. 03 Oct, 2016 1 commit
  29. 11 Sep, 2016 2 commits