- 22 Aug, 2021 1 commit
-
-
tavit ohanian authored
-
- 22 Apr, 2021 1 commit
-
-
Lucas Molas authored
-
- 01 Apr, 2021 1 commit
-
-
vyzo authored
-
- 12 Nov, 2020 1 commit
-
-
Steven Allen authored
-
- 10 Sep, 2020 1 commit
-
-
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: Paul Wolneykien <manowar@altlinux.org>
-
- 22 Apr, 2020 1 commit
-
-
Dirk McCormick authored
-
- 17 Apr, 2020 6 commits
-
-
Dirk McCormick authored
-
Dirk McCormick authored
-
Steven Allen authored
There's no reason to launch this async.
-
Dirk McCormick authored
-
Dirk McCormick authored
-
Dirk McCormick authored
-
- 16 Apr, 2020 4 commits
-
-
Dirk McCormick authored
-
Dirk McCormick authored
-
Dirk McCormick authored
-
Dirk McCormick authored
-
- 15 Apr, 2020 3 commits
-
-
Dirk McCormick authored
-
Dirk McCormick authored
-
Dirk McCormick authored
-
- 17 Mar, 2020 1 commit
-
-
Steven Allen authored
fixes #302
-
- 12 Feb, 2020 2 commits
-
-
Steven Allen authored
-
dirkmc authored
-
- 30 Jan, 2020 1 commit
-
-
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
-
- 14 Aug, 2019 1 commit
-
-
Steven Allen authored
-
- 08 Aug, 2019 1 commit
-
-
Łukasz Magiera authored
-
- 14 Jun, 2019 1 commit
-
-
Steven Allen authored
This ensures we don't keep large buffers allocated.
-
- 31 May, 2019 1 commit
-
-
Raúl Kripalani authored
-
- 22 May, 2019 1 commit
-
-
hannahhoward authored
delay binding of network until a receiver is present. also add test of ipfs host network
-
- 10 May, 2019 1 commit
-
-
hannahhoward authored
Add comments to all exported functions, extract the utils for creating instances in testnet.go, moves integration tests to bitswap_test BREAKING CHANGE: removed one constant -- rebroadcastDelay -- which I believe was unused
-
- 27 Mar, 2019 1 commit
-
-
Bob Potter authored
This reverts commit fc1278e6. It appears that using a buffer here is no longer necessary after the upstream fix https://github.com/gogo/protobuf/pull/504
-
- 05 Feb, 2019 1 commit
-
-
Steven Allen authored
We now do exactly what the comment is warning about: track peers providing keys.
-
- 11 Dec, 2018 1 commit
-
-
- 29 Oct, 2018 1 commit
-
-
Jeromy authored
-
- 17 Oct, 2018 1 commit
-
-
Steven Allen authored
Let's not split every wantlist into a length and a wantlist...
-
- 12 Sep, 2018 1 commit
-
-
Kevin Atkinson authored
-
- 27 Jul, 2018 1 commit
-
-
Jeromy authored
-
- 18 Jul, 2018 1 commit
-
-
Steven Allen authored
Otherwise, we tie up the bitswap worker until the other side responds with an EOF. fixes #5247 related to https://github.com/libp2p/go-libp2p-net/issues/28 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 16 Jul, 2018 1 commit
-
-
Steven Allen authored
alternative to #5243 that updates go-cid and all packages that depend on it License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-
- 27 Jun, 2018 1 commit
-
-
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: Steven Allen <steven@stebalien.com>
-
- 09 Jun, 2018 1 commit
-
-
Steven Allen authored
* go-log * sys * go-crypto License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
-