Commit Graph

237 Commits

Author SHA1 Message Date
Juan Batiz-Benet
c4a935c3e3 go complains about lack of buildable file 2014-12-17 23:44:39 -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
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
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
Brian Tiger Chow
6884c9ddd2 trivial change to trigger build 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
Juan Batiz-Benet
061e1ab861 net: better protocol headers 2014-12-16 14:47:29 -08:00
Juan Batiz-Benet
c150668a1c net: threadsafe mux handler add 2014-12-16 14:47:29 -08:00
Juan Batiz-Benet
f18bbde344 net: StreamHandlerMap + protocol ids 2014-12-16 14:47:29 -08:00
Brian Tiger Chow
50f01576ca Update net.go 2014-12-16 05:55:41 -08:00
Juan Batiz-Benet
c63ffdd0ae removed old network 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
6334e19374 make net work with new stream + mux 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
e5e2d59f0e moved mux into net 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
31a3c4497a swarm fixes 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
b5b4390ca4 refactor SwarmConn -> Conn 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
9c11970554 handler muxer 2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
6bc26f1752 writing swarm2 using go-peerstream
omg wow such pass
2014-12-16 05:10:46 -08:00
Juan Batiz-Benet
a3a48ce67b conn: tests pass :) 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
0061f0c151 new swarm -- it's so simple 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
393842e245 much simpler net
- removed ctxcloser
- removed multiconn
- focused on netio
2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
9b7fb704ef make net/conn.Conn conform to net.Conn 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
3b29653022 updated msgio + secio 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
9d304768fc stash 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
bd636e1e95 muxer io 2014-12-16 05:10:45 -08:00
Juan Batiz-Benet
d94593a955 new swarm with io and router 2014-12-16 05:10:44 -08:00
Juan Batiz-Benet
129eca0d82 multiconn: close fanIn + error 2014-12-16 05:10:44 -08:00
Juan Batiz-Benet
5341379f9d net/conn: io, not channels
This commit changes the connections to use io.ReadWriters
instead of channels (+ async workers). This is a pretty
big change -- away from csp -- in the name of performance
(and predictable flow control).

It also uses the brand new secio, which is spipe's successor.
2014-12-16 05:10:44 -08:00