- 02 Jan, 2015 25 commits
-
-
Juan Batiz-Benet authored
The net package is the next to move. It will be massaged a bit still to fix the Network / "NetworkBackend" conflict.
-
Juan Batiz-Benet authored
The crypto package moves into p2p. Nothing in it so far is ipfs specific; everything is p2p-general.
-
Juan Batiz-Benet authored
I think it's time to move a lot of the peer-to-peer networking but-not-ipfs-specific things into its own package: p2p. This could in the future be split off into its own library. The first thing to go is the peer.
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
These services should all be added separately, in a function that is Network impl independent. The interfaces need to be massaged a bit (split inet.Network in two), so will do when needed. For now this is fine.
-
Juan Batiz-Benet authored
swarmnet is a better name for the package, because it's just a Network implemented with a Swarm. (ipfsnet will be something slightly different).
-
Juan Batiz-Benet authored
this is the leadup into NAT traversal. note: doesn't work yet. hangs the test.
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
I needed the network implementation in its own package, because I'll be writing several services that will plug into _it_ that shouldn't be part of the core net package. and then there were dependency conflicts. yay. mux + identify are good examples of what i mean.
-
Juan Batiz-Benet authored
blockstore: suppress exchange error
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
rewrite of provides to better select peers to send RPCs to
-
Jeromy authored
-
Jeromy authored
Also remove older useless code.
-
Jeromy authored
-
Jeromy authored
-
Jeromy authored
-
Juan Batiz-Benet authored
The test was occasionally passing because: - it called `putLocal(key, val)` - GetValue calls `getLocal(key)` optimistically. cc @whyrusleeping
-
Jeromy authored
-
Jeromy authored
refactor test peer creation to be deterministic and reliable a bit of cleanup trying to figure out TestGetFailure add test to verify deterministic peer creation switch put RPC over to use getClosestPeers rm 0xDEADC0DE fix queries not searching peer if its not actually closer
-
Juan Batiz-Benet authored
peerstream transports
-
Juan Batiz-Benet authored
go-peerstream update to use github.com/hashicorp/yamux
-
Juan Batiz-Benet authored
clients were already accessing secio in one thread, but it's safer to make sure it _is_ threadsafe
-
- 01 Jan, 2015 3 commits
-
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
used to return io.ErrShortBuffer, but this makes client code much more complicated. we're already allocating buffers when it's too large, so might as well just keep it for later.
-
Juan Batiz-Benet authored
peerstream was updated to use pluggable transports, including muxado. The interface was also simplified slightly.
-
- 31 Dec, 2014 3 commits
-
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
bugfix in spdystream
-
Juan Batiz-Benet authored
and updated go-peerstream cc @whyrusleeping
-
- 30 Dec, 2014 2 commits
-
-
Brian Tiger Chow authored
fix panic in net diag
-
Jeromy authored
-
- 28 Dec, 2014 7 commits
-
-
Juan Batiz-Benet authored
updated go-peerstream (close fix)
-
Juan Batiz-Benet authored
-
Brian Tiger Chow authored
epictest race fix
-
Brian Tiger Chow authored
-
Juan Batiz-Benet authored
@maybebtc the error was not inside mocknet. the error is in assuming the peers / nets returned follow the same order. See: - https://github.com/jbenet/go-ipfs/blob/master/epictest/addcat_test.go#L100 - https://gist.github.com/jbenet/a39bb9d2f16532a03bb8 if you want the results to be sorted by peer.ID before they are returned, we can totally do that, but that's probably an unsafe assumption to make in general-- if you do your initialization async, the number of networks or peers may have changed between the two calls. LMK what you prefer. (thank you golang map chaosmonkey ;)
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-