vyzo
62531f9a10
reduce autorelay boot delay to 20s
6 years ago
vyzo
bace7d4ceb
autorelay: correctly handle private->public transition
6 years ago
vyzo
c3b5ece119
reduce autorelay discovery timeout to 30s
6 years ago
vyzo
e2412502a6
reduce autorelay boot delay to 30s
6 years ago
Steven Allen
16a60f9751
reduce nat error level
6 years ago
Lars Gierth
7741442478
relay: simplify declaration of multiaddr var
6 years ago
lnykww
5da711dc6c
Fix UDP listen on a Unspecified Address and Dial from the Unspecified Address
LocalMultiaddr May return the Unspecified Address, if so, we need to
check if we listen on the Unspecified address and they were equal.
6 years ago
Leonhard Markert
2a7478131a
Fix typos in p2p/net/README.md
"Requet" -> "Request", "tls" -> "TLS"
6 years ago
Steven Allen
5c51323aa2
mock: increase tolerance for latency tests
These were exceeding their tolerances when run under the race detector on CI.
6 years ago
Steven Allen
5b643cde2d
mock: reduce peer count in FuzzManyPeers when the race detector is enabled
6 years ago
Steven Allen
e96aefc3b3
autorelay: disable consistantly failing auto-relay test
6 years ago
Steven Allen
58f40b9d11
mocknet: fix data race
6 years ago
Steven Allen
8c8f08e36f
natmgr: rename refresh to sync
6 years ago
Steven Allen
3617750071
better nat mapping
1. Update to work with https://github.com/libp2p/go-libp2p-nat/pull/14 .
2. Avoid observed addrs when our NAT tells us about external addrs.
3. Ignore bad addrs reported by our NAT. Substitute with observed addrs.
4. Fix https://github.com/libp2p/go-libp2p/issues/428 .
6 years ago
Jakub Sztandera
533d9866c6
gx publish 6.0.34
6 years ago
Matt Joiner
3b8d83ffdc
Resolve addrs with P2P instead of IPFS ( #539 )
6 years ago
iulianpascalau
b8e47c5dea
mock package:
- changed GetStreams function from mock_conn.go to call allStreams which has the same functionality but is concurrent safe
- changed protocol field from mock_stream to be concurrent safe. Taken the implementation from swarm_stream.go
6 years ago
vyzo
7fa37513fd
increase initial relay advertisement delay to 30s
6 years ago
vyzo
3a993345d0
use PeerRouting in autorelay to find relay peer addresses
6 years ago
vyzo
c5f50f9c2d
don't advertise the raw public address in autorelay
6 years ago
Steven Allen
758b516603
mock: export ratelimiter as RateLimiter
Technically a breaking change because I changed the constructor casing but
nobody's using this outside of libp2p (yet), mostly because the type hasn't been
exported.
6 years ago
vyzo
5d0a6e23ce
use select for initial advertisement delay
6 years ago
vyzo
a1b5b9ed53
explicit option to enable autorelay
6 years ago
Abhishek Upperwal
36a2645306
removing redundant if condition
6 years ago
Abhishek Upperwal
3ae2d75e46
added comments for clarity
6 years ago
Abhishek Upperwal
88d98287ff
suppressing error msg for NoSecurity option
6 years ago
vyzo
31eb77d446
add delay in initial relay advertisement to allow the dht time to bootstrap
6 years ago
Steven Allen
79ba610d21
mocknet: create a connection on NewStream if we need one
That's what the Swarm does and that's what the function's documentation says it
does.
6 years ago
Steven Allen
a8e25bf270
mocknet: refuse to connect to self
The swarm does this as well and most of our services will fail if we don't have
this.
6 years ago
Steven Allen
00ba6a165a
deflake identify test
This was probably failing (rarely) due to the fact that we're shrinking the
timeout asynchronously (I think?).
6 years ago
Steven Allen
f4229470cb
mocknet: use peer ID in peer address
RandLocalTCPAddress is mostly useful when we *actually* want to listen on a real
address. Unfortunately, when running a bunch of tests, we can actually run
out.
With this change, a collision means we have a duplicate peer ID so yeah...
fixes #473
6 years ago
vyzo
a309f09606
Add note to relay docs about internal interface instability
6 years ago
vyzo
5a1c09c4af
use advertised addrs for autonat dial back, not all addrs
6 years ago
vyzo
5d8988f3ee
add comment about the unstable nature of BasicHost.PushIdentify
6 years ago
vyzo
69144bd78b
extend autorelay test to verify pushing of relay addrs
also check that we don't initially advertise any.
6 years ago
vyzo
0dfca3ba5d
increase test AutoNATIdentifyDelay to 100ms
macosx seems to fail intermittently, and that race is the likely culprit.
6 years ago
vyzo
7b324b14b5
remove BasicRouting interface; use PeerRouting and upcast for discovery
6 years ago
vyzo
c2d846a7c3
fix go vet issue
6 years ago
vyzo
fdfa224699
document doUpdateAddrs
6 years ago
vyzo
4be7ada37b
tag relay connections
6 years ago
vyzo
e96605d1a3
use /p2p multiaddr
6 years ago
vyzo
84400e22f2
fix typo
6 years ago
vyzo
4f90393629
add a comment
6 years ago
vyzo
67aba4d501
move relay selection strategy out of line
6 years ago
vyzo
cc2dd22028
make randezvous key a constant
6 years ago
vyzo
2993fd9a68
add autorelay documentation
6 years ago
vyzo
a7e1bf0f15
call the routing interface BasicRouting, alias to top level type
6 years ago
vyzo
89aef893e6
don't adveretise unspecific relay addrs in RelayHost
6 years ago
vyzo
dcb8fd2813
fix inverted address selection logic in test
6 years ago
vyzo
ee69383c2c
extend autorelay test to verify connectivity
6 years ago