1. 15 Apr, 2021 1 commit
  2. 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
  3. 17 Apr, 2020 1 commit
  4. 16 Apr, 2020 1 commit
  5. 15 Apr, 2020 1 commit
  6. 11 Mar, 2020 1 commit
  7. 12 Feb, 2020 1 commit
  8. 30 Jan, 2020 2 commits
    • Steven Allen's avatar
      feat: move internals to an internal package · bbf65296
      Steven Allen authored
      This makes reading the docs much easier as it's clear what's "private" and
      what's not.
      
      fixes #238
      bbf65296
    • 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
  9. 14 Aug, 2019 3 commits
  10. 31 May, 2019 1 commit
  11. 22 May, 2019 1 commit