1. 28 Feb, 2019 1 commit
    • Steven Allen's avatar
      fix: limit use of custom context type · 799bfb3e
      Steven Allen authored
      Goprocess returns a _custom_ context type. Unfortunately, golang has a bunch of
      magic type assertions to efficiently handle built-in context types but launches
      a new goroutine when deriving a new context from a custom context type.
      Otherwise, it has no way to wait on the custom context's channel.
      
      This fix just ensures we only ever have one of goroutines per provide worker by
      deriving a (normal) cancelable context up-front and then using that.
      799bfb3e
  2. 05 Feb, 2019 1 commit
  3. 22 Jan, 2019 1 commit
  4. 12 Dec, 2018 1 commit
  5. 11 Dec, 2018 1 commit
    • hannahhoward's avatar
      refactor(WantManager): extract PeerManager · 693085c9
      hannahhoward authored
      Seperates the functions of tracking wants from tracking peers
      Unit tests for both peer manager and want manager
      Refactor internals of both to address synchonization issues discovered
      in tests
      693085c9
  6. 04 Dec, 2018 1 commit
  7. 04 Oct, 2018 1 commit
    • taylor's avatar
      bitswap: Bitswap now sends multiple blocks per message · eb0d1ffc
      taylor authored
      Updated PeerRequestTask to hold multiple wantlist.Entry(s). This allows Bitswap to send multiple blocks in bulk per a Peer's request. Also, added a metric for how many blocks to put in a given message. Currently: 512 * 1024 bytes. 
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      eb0d1ffc
  8. 12 Sep, 2018 1 commit
  9. 27 Jul, 2018 1 commit
  10. 16 Jul, 2018 1 commit
  11. 27 Jun, 2018 1 commit
    • Steven Allen's avatar
      gx update · b468efbc
      Steven Allen authored
      Updates:
      
      * go-kad-dht: Query performance improvements, DHT client fixes, validates
        records on *local* put.
      * go-libp2p-swarm/go-libp2p-transport: Timeout improvements.
      * go-multiaddr-net: Exposes useful Conn methods (CloseWrite, CloseRead, etc.)
      * go-log: fixes possible panic when enabling/disabling events.
      * go-multiaddr: fixes possible panic when stringifying malformed multiaddrs,
        adds support for consuming /p2p/ multiaddrs.
      
      fixes #5113
      unblocks #4895
      
      License: MIT
      Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
      b468efbc
  12. 09 Jun, 2018 1 commit
  13. 01 Jun, 2018 1 commit
  14. 01 Feb, 2018 1 commit
  15. 24 Jan, 2018 1 commit
  16. 29 Dec, 2017 1 commit
  17. 14 Dec, 2017 1 commit
  18. 02 Sep, 2017 1 commit
  19. 12 Jul, 2017 1 commit
  20. 06 Jul, 2017 1 commit
  21. 05 Jul, 2017 1 commit
  22. 04 Jul, 2017 1 commit
  23. 29 Jun, 2017 1 commit
  24. 26 Apr, 2017 1 commit
    • dgrisham's avatar
      bug fix: `BytesSent` in peers' ledgers now updates · bc9342bf
      dgrisham authored
      When sending data to another user, the number of bytes sent to that user (saved
      by the corresponding Bitswap ledger) was not updated (it was always 0). This
      also meant that the debt ratio was also always 0.
      
      The function that updates the `BytesSent` value in the ledger, `MessageSent()`,
      was already implemented, however it was not called when the peer was sent data.
      To fix this, a call to `MessageSent()` was made in the `taskWorker()` function,
      which is where both the message in question and the Bitswap engine were
      available to make the call. `MessageSent()` requires the peer's ID and
      `BitSwapMessage` as its arguments, the latter of which had to be created by
      making a new `BitSwapMessage`, then the block being sent was added to the new
      message.
      
      Note that, similar to the analagous call to `MessageReceived()`, records *all*
      of the bytes sent to a particular user. At some point, both of these should be
      updated to only record the numbers of *useful* bytes sent and received between
      peers.
      
      License: MIT
      Signed-off-by: default avatarDavid Grisham <dgrisham@mines.edu>
      bc9342bf
  25. 20 Apr, 2017 1 commit
  26. 06 Mar, 2017 2 commits
  27. 12 Feb, 2017 1 commit
  28. 29 Nov, 2016 1 commit
  29. 22 Nov, 2016 1 commit
  30. 16 Nov, 2016 1 commit
  31. 25 Oct, 2016 1 commit
  32. 12 Oct, 2016 1 commit
    • Jeromy's avatar
      merkledag: change 'Node' to be an interface · abfdac9a
      Jeromy authored
      Also change existing 'Node' type to 'ProtoNode' and use that most
      everywhere for now. As we move forward with the integration we will try
      and use the Node interface in more places that we're currently using
      ProtoNode.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      abfdac9a
  33. 10 Oct, 2016 1 commit
    • Jeromy's avatar
      bitswap: protocol extension to handle cids · 591491b1
      Jeromy authored
      This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
      adds a 'payload' field to the protobuf message and deprecates the
      existing 'blocks' field. The 'payload' field is an array of pairs of cid
      prefixes and block data. The cid prefixes are used to ensure the correct
      codecs and hash functions are used to handle the block on the receiving
      end.
      
      License: MIT
      Signed-off-by: default avatarJeromy <why@ipfs.io>
      591491b1
  34. 08 Oct, 2016 1 commit
  35. 06 Oct, 2016 1 commit
  36. 29 Sep, 2016 1 commit
  37. 26 Sep, 2016 1 commit
  38. 10 Sep, 2016 1 commit
  39. 09 Sep, 2016 1 commit