Commit Graph

2305 Commits

Author SHA1 Message Date
Brian Tiger Chow
29ef238fa3 remove dead code
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:41 -08:00
Brian Tiger Chow
86c438b6e1 refactor() message API
performing CR in the form of a PR. Let me know what you think.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:41 -08:00
Jeromy
6389bfda6b some cleanup before CR 2014-12-17 23:44:41 -08:00
Jeromy
2240272d85 change Provide RPC to not wait for an ACK, improves performance of 'Add' operations 2014-12-17 23:44:41 -08:00
Jeromy
90a30961de renaming and removing empty strategy file 2014-12-17 23:44:41 -08:00
Jeromy
029e305f19 tasklist queue for bitswap tasks 2014-12-17 23:44:41 -08:00
Jeromy
cfbe92bc8b rewrite sendWantlistToProviders 2014-12-17 23:44:40 -08:00
Jeromy
946d2a96f2 add locks to wantlist to avoid race condition 2014-12-17 23:44:40 -08:00
Brian Tiger Chow
59f0ffb8c6 remove noisy statement
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:40 -08:00
Brian Tiger Chow
da68475bcf fix go version
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-17 23:44:40 -08:00
Jeromy
50aa37fec4 blockstore.ErrNotFound, and proper wantlist sorting 2014-12-17 23:44:40 -08:00
Jeromy
e7bba82dcb add priorities to GetBlocks requests, and add waitgroup to sendWantListTo 2014-12-17 23:44:40 -08:00
Jeromy
3778eedff0 dont spawn so many goroutines when rebroadcasting wantlist 2014-12-17 23:44:40 -08:00
Jeromy
57e7dd7b8b extracted ledgerset from strategy, cleaned up a few comments from the PR 2014-12-17 23:44:40 -08:00
Jeromy
5b6a5e807f implement bitswap roundWorker
make vendor
2014-12-17 23:44:39 -08:00
Jeromy
12b296ee1a create wantlist object 2014-12-17 23:44:39 -08:00
Juan Batiz-Benet
c4a935c3e3 go complains about lack of buildable file 2014-12-17 23:44:39 -08:00
Juan Batiz-Benet
911b54e526 Merge pull request #443 from jbenet/ionet-conn
net-io
2014-12-17 23:32:35 -08:00
Juan Batiz-Benet
4da261001f mocknet printer for printing 2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
6acc152f0c backpressure: explanation + more rounds 2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
db7d7ae891 net: sending backpressure test 2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
ccc17d2740 net: cool test for new stream backpressure
Sadly, as cool as this test is, it doesn't work
Because spdystream doesnt handle stream open backpressure
well. I'll see about rewriting that part when it becomes
a problem. More backpressure tests comming.
2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
358b8a9984 net: testing protocol 2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
ad43e1d462 testutil: peer gen with addrs 2014-12-17 23:25:41 -08:00
Juan Batiz-Benet
b573d66208 mocknet: internals test
Found bugs with it :)
2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
f354fa849e mocknet: FullMesh connects to self too.
@maybebtc thoughts on this? dialing self should be
**possible**, so we should in general test that we do
consider that case, but not sure if this is good to expose
to clients. thoughts?

Btw, on why dialing self should be possible, we may create
little protocols which we may have a node connect to self,
say across its interfaces to test connectivity, etc...
think of it like:

> server localhost:1234 &
> curl localhost:1234
2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
b0a36aabcb mocknet: bugfix on opening conns + printer 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
f1fc09ccee mocknet: printing internal mocknet state 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
2ae9b27859 moved net/swarm2 -> swarm 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
5d019ad300 mocknet add test 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
de6eef9178 mv net/mock2 -> net/mock 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
58510640fa rm old mock 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
dd33f6d9dc transition dht to mock2 2014-12-17 23:25:40 -08:00
Juan Batiz-Benet
e6a7179a8a mock2: removed list to fix bugs
container/lists suck
2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
444f47d7f5 mock2: link map fixes 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
59d1426cf5 mock2/ missing ctxgroup 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
2f9d398d66 mock2/ connections 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
3c9be87704 mock2: ConnectAll 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
5a2a8c62f3 unlinkPeers fix 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
ac42cbe9f9 mock2 2014-12-17 23:25:39 -08:00
Juan Batiz-Benet
31a62aff94 testutil: gen peers with keys 2014-12-17 23:25:39 -08:00
Brian Tiger Chow
6884c9ddd2 trivial change to trigger build 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
1f59e18d36 whoops deps 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
78c0802f97 connect swarm context to network 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
ba323c3e48 make vendor 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
7648a8b55c swarm tests: dont send to self 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
bc2d35fd4d Lots of fixes. DHT tests pass 2014-12-17 23:25:38 -08:00
Juan Batiz-Benet
7fdafaf1e5 stress test 2014-12-16 14:47:30 -08:00
Juan Batiz-Benet
fd3cd399e5 mock network 2014-12-16 14:47:29 -08:00
Juan Batiz-Benet
41751b4938 Integrated new network into ipfs 2014-12-16 14:47:29 -08:00