- 28 Jan, 2015 2 commits
-
-
Juan Batiz-Benet authored
+ fixed race
-
Juan Batiz-Benet authored
-
- 27 Jan, 2015 2 commits
-
-
Juan Batiz-Benet authored
This commit turns all dial logs into log.Events. Everything's great except for one problem: The LoggableMap I'm using does not print out things correctly. I gave it peer.IDs, and Multiaddrs and both got logged as nothing `{}` (didn't even call their String() methods!) So, for now, this function encodes it when called... This is wrong and should be fixed before being merged in. Otherwise we will be constantly encoding peer.IDs and Multiaddrs without needing to. @briantigerchow how do you suggest doing this? I don't know my way around your Loggable.
-
Juan Batiz-Benet authored
-
- 18 Jan, 2015 2 commits
-
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
-
- 15 Jan, 2015 3 commits
-
-
Brian Tiger Chow authored
```Go e := log.EventBegin(ctx, "provide") e.Done() e := log.EventBegin(ctx, "provide") e.Close() // implements io.Closer in case you want to register with some lifecycle management system. ```
-
Brian Tiger Chow authored
-
Juan Batiz-Benet authored
Good thing, i checked one wrong, too!
-
- 14 Jan, 2015 1 commit
-
-
Juan Batiz-Benet authored
-
- 12 Jan, 2015 3 commits
-
-
Juan Batiz-Benet authored
Queries now can be cancelled and the resources collected
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
- 11 Jan, 2015 1 commit
-
-
Brian Tiger Chow authored
-
- 05 Jan, 2015 3 commits
-
-
Juan Batiz-Benet authored
This also makes it an Error to find a peer.
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
this commit adds a logger with prefixes
-
- 02 Jan, 2015 6 commits
-
-
Juan Batiz-Benet authored
This commit makes all network tests use ZeroLocalTCPAddress as the initial peer address, and then relies on net.ListenAddresses() This should get rid of the tcp addr clash problems.
-
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.
-
Jeromy authored
-
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
-
- 25 Dec, 2014 1 commit
-
-
Juan Batiz-Benet authored
-
- 24 Dec, 2014 8 commits
-
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
cc @jbenet
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
-
Brian Tiger Chow authored
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
This commit introduces a reader and writer that respect contexts. Warning: careful how you use them. Returning leaves a goroutine reading until the read finishes.
-
Juan Batiz-Benet authored
-
- 23 Dec, 2014 3 commits
-
-
Juan Batiz-Benet authored
this is a major refactor of the entire codebase it changes the monolithic peer.Peer into using a peer.ID and a peer.Peerstore. Other changes: - removed handshake3. - testutil vastly simplified peer - secio bugfix + debugging logs - testutil: RandKeyPair - backpressure bugfix: w.o.w. - peer: added hex enc/dec - peer: added a PeerInfo struct PeerInfo is a small struct used to pass around a peer with a set of addresses and keys. This is not meant to be a complete view of the system, but rather to model updates to the peerstore. It is used by things like the routing system. - updated peer/queue + peerset - latency metrics - testutil: use crand for PeerID gen RandPeerID generates random "valid" peer IDs. it does not NEED to generate keys because it is as if we lost the key right away. fine to read some randomness and hash it. to generate proper keys and an ID, use: sk, pk, _ := testutil.RandKeyPair() id, _ := peer.IDFromPublicKey(pk) Also added RandPeerIDFatal helper - removed old spipe - updated seccat - core: cleanup initIdentity - removed old getFromPeerList
-
Juan Batiz-Benet authored
-
Juan Batiz-Benet authored
-
- 18 Dec, 2014 5 commits
-
-
Jeromy authored
-
Brian Tiger Chow authored
not changing this because i don't want to write a test for it now License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Brian Tiger Chow authored
addresses https://github.com/jbenet/go-ipfs/pull/438#discussion_r21952271 License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
-
Jeromy authored
-
Jeromy authored
-