1. 01 Apr, 2021 1 commit
  2. 12 Nov, 2020 1 commit
  3. 10 Sep, 2020 1 commit
    • Paul Wolneykien's avatar
      Fix: Increment stats.MessagesSent in msgToStream() function (#441) · bcf85413
      Paul Wolneykien authored
      * Share common code between network/ipfs_impl_test.go tests
      
      Extract the code that is common in TestMessageResendAfterError,
      TestMessageSendTimeout and TestMessageSendNotSupportedResponse to a
      separate function.
      
      * Make prepareNetwork() return two hosts and two networks
      
      Let prepareNetwork() make simmetric setup with two `ErrHost`s
      with two `impl` networks to be sure we test `impl` instances on
      both ends.
      
      * Added TestNetworkCounters test to the "network" package
      
      The test shows we have a problem with `MessagesSent` counter.
      
      * Fix: Increment stats.MessagesSent in msgToStream() function
      
      Fixes the bug with incrementing `MessagesSent` counter only in
      `SendMessage()` method if `impl`. Now it works for `MessageSender`
      too.
      
      * Allow to specify a network event listener for tests
      
      Added `listener network.Notifiee` to the `receiver` structure.
      If a listener is specified then `prepareNetwork()` connects it
      to the mock network it builds before making any connections.
      
      * Wait for all network streams are closed in testNetworkCounters
      
      Wait for all network streams are closed instead of just using a
      timeout. The timeout of 5 s is still used as a deadline (it makes
      the test to fail).
      
      * Fix: Close the MessageSender in testNetworkCounters()
      
      The `MessageSender` needs to be closed if we want all streams in
      the network to be closed.
      
      * Fix: Close MessageSender in other tests too
      Co-authored-by: default avatarPaul Wolneykien <manowar@altlinux.org>
      bcf85413
  4. 22 Apr, 2020 1 commit
  5. 17 Apr, 2020 6 commits
  6. 16 Apr, 2020 4 commits
  7. 15 Apr, 2020 3 commits
  8. 17 Mar, 2020 1 commit
  9. 12 Feb, 2020 2 commits
  10. 30 Jan, 2020 1 commit
    • dirkmc's avatar
      feat: bitswap protocol extensions · b3a47bcf
      dirkmc authored
      This commit extends the bitswap protocol with two additional wantlist properties:
      
      * WANT_HAVE/HAVE: Instead of asking for a block, a node can specify that they
        want to know if any peers "have" the block.
      * WANT_HAVE_NOT/HAVE_NOT: Instead of waiting for a timeout, a node can explicitly
        request to be told immediately if their peers don't currently have the given
        block.
      
      Additionally, nodes now tell their peers how much data they have queued to send
      them when sending messages. This allows peers to better distribute requests,
      keeping all peers busy but not overloaded.
      
      Changes in this PR are described in: https://github.com/ipfs/go-bitswap/issues/186
      b3a47bcf
  11. 14 Aug, 2019 1 commit
  12. 08 Aug, 2019 1 commit
  13. 14 Jun, 2019 1 commit
  14. 31 May, 2019 1 commit
  15. 22 May, 2019 1 commit
  16. 10 May, 2019 1 commit
  17. 27 Mar, 2019 1 commit
  18. 05 Feb, 2019 1 commit
  19. 11 Dec, 2018 1 commit
  20. 29 Oct, 2018 1 commit
  21. 17 Oct, 2018 1 commit
    • Steven Allen's avatar
      buffer writes · fc1278e6
      Steven Allen authored
      Let's not split every wantlist into a length and a wantlist...
      fc1278e6
  22. 12 Sep, 2018 1 commit
  23. 27 Jul, 2018 1 commit
  24. 18 Jul, 2018 1 commit
  25. 16 Jul, 2018 1 commit
  26. 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
  27. 09 Jun, 2018 1 commit
  28. 06 Jun, 2018 2 commits