Jeromy
cea1fe131f
extract net interface and metrics
8 years ago
Jeromy
0f3ffb2d07
extract conn, addr-util, and testutil
8 years ago
Jeromy
1085a07654
extract protocol and maddr-filter
8 years ago
Jeromy
4dd30d824b
switch to using stdlib context package
8 years ago
Jakub Sztandera
4172857109
fix locking issue introduced in 90eeff42fc
8 years ago
Jeromy
5b6ab8c326
update mdns to version with fixed race condition
8 years ago
Jeromy
2eef5a702e
split tcp transports out of the base package
8 years ago
Jeromy
e6a5c5c241
don't block on DiscoverHandler
8 years ago
Jeromy
9441754369
swarm: add deadline for connection setup
8 years ago
Jeromy
d70e1625a8
conn/dial: implement contextDial up the stack
8 years ago
Jakub Sztandera
90eeff42fc
nat: add locks around nat
8 years ago
Jakub Sztandera
b6bfae67a0
nat: split into files
8 years ago
Jakub Sztandera
51ffdf87d4
nat: do not shortcircuit permanent mappings
If we use same NAT agent and call for the same permanent mapping
again we get the same mapping, no harm done.
If router dies, we will remap again.
Just pros, no cons.
8 years ago
Jakub Sztandera
a3bf168759
Retry NAT punching without duration on mapping failure
Some hardware doesn't support UPnP with durations.
8 years ago
jbenet
aafaf38683
identify: handle case where local peer.ID is empty
8 years ago
jbenet
17d39398e9
identify: tests verify we have public keys
8 years ago
jbenet
83eddcae92
identify: consume public key in message.
Make sure to verify that our keys match.
In the rare event they do not, make sure to investigate
what's wrong, and log errors.
8 years ago
jbenet
65273ab3e7
identify: send public key in message
8 years ago
Jeromy
126e150674
swarm: integrate new dialsync code into swarm
8 years ago
Jeromy
e26950ff77
swarm: implement new DialSync manager code
8 years ago
Jeromy
71efb2ccb2
swarm: perform backoff check before taking dialsync lock
8 years ago
Jeromy
5758d3e652
swarm: externalize secio handshake errors
8 years ago
Jeromy
324aae38f1
swarm: add optimized method for checking connectedness to peer
8 years ago
Jeromy
9a9a8de2c7
don't wrap conns with metrics if bwc is nil
8 years ago
Jeromy
a56440a9c7
swarm: pass in stream muxer on construct
8 years ago
Jeromy
978b186d81
swarm: refactor to make modular construction easier
8 years ago
Jeromy
faced1efd2
add note to test failure
8 years ago
Jeromy
b1456b79b6
add in experimental websocket support
9 years ago
Jeromy
0b90707e39
update transport dep and add host test
8 years ago
Jeromy
00fa664611
use peerstore for protocol preferencce storage
8 years ago
Jeromy
f21d06fbf0
update peerstore dep
8 years ago
Jeromy Johnson
287383a75a
sleep before final connectedness check
8 years ago
Jeromy
f74add8a19
swarm: make stream.Protocol() return type protocol.ID
8 years ago
Jeromy
36c66c0e93
host: add wait for handshake in proto preknowledge test
8 years ago
Jeromy
fc64ec9027
host: add tests for protocol preferences in host
8 years ago
Jeromy
e51398525a
host: pre-seed preferred protocols with info from identify
8 years ago
Jeromy
7a3394b1da
host: remember which protocols work for a given peer
8 years ago
Jeromy
46eafb52f3
p2p/net/swarm: improve code coverage
8 years ago
Jeromy
de84a41402
identify: log protocols from remote peers in peerstore
8 years ago
Jeromy
6635e3d7f5
p2p/host: expose multistream function matching and add semver func
8 years ago
Jeromy
e90e01708a
lint: fixed a bunch of issues reported by gometalinter
8 years ago
Jeromy
8744e460da
update local import paths to reflect org change
8 years ago
Jeromy
c0e2b930e3
update multistream deps and fix code to work with new changes
8 years ago
John Steidley
5c8093b073
gosimple
8 years ago
Jeromy
45f9b5ae0f
expose backoff manager in swarm
8 years ago
Jakub Sztandera
9f7b0b81b5
Fix logging in id.go
8 years ago
Jeromy
9ccbf103e0
bump agent version to match repo version
9 years ago
Jeromy
eca66a8891
fix minor race condition in nat detection code
9 years ago
Jeromy
51c5f6a063
fix consumption of observed remote addrs
9 years ago
Jeromy
6dddefe20c
improve comment on temp code
9 years ago