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
Brian Tiger Chow
c2c95d1105
start threading context through the system
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-09 07:11:48 -08:00
Juan Batiz-Benet
dc9f1c4532
net: README.
...
I'm using a Google Drawing to make this diagram.
Turned out pretty well.
2014-12-09 02:12:43 -08:00
Juan Batiz-Benet
93872a52fc
net/interface: use iota
2014-12-08 21:12:58 -08:00
Juan Batiz-Benet
f15ab8eec3
net: add LocalPeer funcs
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
ff1e672d5a
dht/pb: changed PeersToPBPeers to set ConnectionType
...
Uses an inet.Dialer
2014-12-08 20:52:45 -08:00
Juan Batiz-Benet
94f04c7fcc
net: add Connectedness var.
2014-12-08 20:52:45 -08:00
Brian Tiger Chow
93fb9fb929
style(logging) demote some statements to Debug (from info)
...
to improve SnR. Feel free to contest these changes if you find these
statements useful. In my experience, they were adding noise at Info.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
5313c1ae22
fix(swarm) Dial panic
...
+/- if len(addresses) is 0, connSetup will be called with nil value for c.
+/- avoid variable reassignment
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
c67286774c
silence verbose output
...
for higher SnR at IPFS_LOGGING=info
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
f25893e31a
style(net) rm unused error
...
having an error return value makes the interface a bit confusing to
use. Just ponder... What would an error returned from a predicate
function mean?
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 15:07:33 -08:00
Brian Tiger Chow
74eb03231d
fix(core, peer) helpers to testutil, err handling
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 14:32:52 -08:00
Brian Tiger Chow
d77c4bb5e0
refactor(peer): create peer through peerstore
...
for safety!
use mockpeer.WithID methods to create peers in tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
73a89e161d
refactor(peerstore) s/Get/FindOrCreate
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Juan Batiz-Benet
59c1ab2fc3
Merge pull request #406 from jbenet/new-msgio
...
updated msgio
2014-12-06 16:20:51 -08:00