vyzo
0d11b096d2
Merge pull request #959 from libp2p/gomod/update
gomod: update dependencies
4 years ago
vyzo
ae7645ce85
gomod: update dependencies
go-libp2p-core@v0.5.7
go-libp2p-connmgr@v0.2.4 [indirect]
go-eventbus@v0.2.1
4 years ago
Aarsh Shah
6b34fff392
fixed compilation error ( #956 )
5 years ago
Aarsh Shah
3a1d20b748
Filter Interface Addresses ( #936 )
* Filter Host Addresses
5 years ago
Steven Allen
294ba3dfac
Merge pull request #953 from libp2p/fix/remove-addresses-immediately
fix: remove old addresses in identify immediately
5 years ago
Steven Allen
be70fa2460
test: fix test for immediately forgetting addresses
5 years ago
Steven Allen
59062c6d6d
fix: remove old addresses in identify immediately
Previously, we'd keep addresses discovered through the DHT for up to 2
minutes (temporary TTL) and previously seen addresses (recently connected) for
up to 10 minutes (the TTL).
1. Make sure to downgrade both connected and recently connected addresses to the
"temporary" ttl before adding new addresses.
2. Finally, downgrade addresses with the temporary TTL to 0.
This could be more efficient with a better peerstore abstraction, but this is
better than nothing.
5 years ago
Aarsh Shah
0dd65a5998
fix flaky test ( #952 )
Fix flaky TestIdentifyPushOnAddrChange
5 years ago
Steven Allen
f6d0327e34
Merge pull request #949 from libp2p/feat/group-exclude-port
fix: group observations by zeroing port
5 years ago
Steven Allen
6ef5f5dacf
fix: group observations by zeroing port
In #917 , we started dropping additional address observations if we had multiple
for the same transport set. However, on further consideration, this isn't quite
correct. We _want_ to keep additional observations for multiple IP addresses.
The real issue is many observations for different ports.
So this patch simply changes the key with which we group observations from
"address protocols" to "address without the port" (well, with the port set to
0).
5 years ago
Steven Allen
b396e69aee
Merge pull request #948 from libp2p/fix/ctor
fix: fix connection gater in transport constructor
5 years ago
Steven Allen
46b58740de
fix: fix connection gater in transport constructor
5 years ago
Steven Allen
3bf5baf905
Merge pull request #945 from libp2p/feat/944
Fix potential flakiness in TestIDService
5 years ago
Raúl Kripalani
d4d6adff6e
make the {F=>f}iltersConnectionGater private. ( #946 )
5 years ago
Aarsh Shah
ba118a4d14
create subscriber first
5 years ago
Aarsh Shah
79ead33e32
Filter observed addresses ( #917 )
* filter observed addrs
5 years ago
Steven Allen
937067939b
Merge pull request #943 from libp2p/fix/record-panic
fix: don't try to marshal a nil record
5 years ago
Steven Allen
01da330ef2
fix: don't try to marshal a nil record
fixes #939
5 years ago
Steven Allen
aa60461752
Merge pull request #941 from libp2p/test/peer-records-no-listen-addrs
add test to demo missing peer records after listen
5 years ago
Steven Allen
15637fc34b
Merge pull request #942 from libp2p/fix/peer-handler-empty
fix: don't leak a goroutine if a peer connects and immediately disconnects
5 years ago
Steven Allen
e3a983a355
fix: don't leak a goroutine if a peer connects and immediately disconnects
5 years ago
Yusef Napora
82c11bce2a
sleep longer in test
5 years ago
Yusef Napora
bd9e7b59ce
detect listen addr changes in BasicHost
5 years ago
Yusef Napora
3364dccbbf
make test fail to demonstrate issue
5 years ago
Yusef Napora
0d6e02e95b
add test to demo missing peer records after listen
5 years ago
Raúl Kripalani
7abe2e4c63
release v0.9.0: upgrade dependencies. ( #937 )
5 years ago
Aarsh Shah
a7671efe6b
no signed peer records for mocknets ( #934 )
* Disable generation of Signed peer record for Mockenets.
5 years ago
Aarsh Shah
887f2c40cf
implement connection gating at the top level ( #881 )
5 years ago
Steven Allen
b42ba0faf3
various identify fixes and nits ( #922 )
* various identify fixes and nits
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
5 years ago
Aarsh Shah
973933ad7d
Remove race between ID, Push & Delta ( #907 )
* Solve races between Identify, Push and Delta.
5 years ago
Raúl Kripalani
d9d18512ca
fix a compilation error introduced in 077a818
. ( #919 )
5 years ago
Yusef Napora
077a81814f
exchange signed routing records in identify ( #747 )
* Exchange signed routing records in identify
Co-authored-by: Aarsh Shah <aarshkshah1992@gmail.com>
5 years ago
Steven Allen
c833e2c9fc
Merge pull request #876 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-peerstore-0.2.3
build(deps): bump github.com/libp2p/go-libp2p-peerstore from 0.2.2 to 0.2.3
5 years ago
Steven Allen
9cc9d5c201
Merge pull request #893 from libp2p/dependabot/go_modules/github.com/libp2p/go-stream-muxer-multistream-0.3.0
build(deps): bump github.com/libp2p/go-stream-muxer-multistream from 0.2.0 to 0.3.0
5 years ago
Steven Allen
6dc5d50fc5
Merge pull request #892 from libp2p/dependabot/go_modules/github.com/libp2p/go-conn-security-multistream-0.2.0
build(deps): bump github.com/libp2p/go-conn-security-multistream from 0.1.0 to 0.2.0
5 years ago
Steven Allen
34867586a3
Merge pull request #895 from libp2p/dependabot/go_modules/github.com/libp2p/go-ws-transport-0.3.1
build(deps): bump github.com/libp2p/go-ws-transport from 0.3.0 to 0.3.1
5 years ago
Steven Allen
75a12253a3
Merge pull request #896 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-discovery-0.4.0
build(deps): bump github.com/libp2p/go-libp2p-discovery from 0.3.0 to 0.4.0
5 years ago
Steven Allen
2d308cd9af
Merge pull request #901 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-circuit-0.2.2
build(deps): bump github.com/libp2p/go-libp2p-circuit from 0.2.1 to 0.2.2
5 years ago
dependabot-preview[bot]
408e4d1286
build(deps): bump github.com/libp2p/go-libp2p-circuit
Bumps [github.com/libp2p/go-libp2p-circuit](https://github.com/libp2p/go-libp2p-circuit ) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/libp2p/go-libp2p-circuit/releases )
- [Commits](https://github.com/libp2p/go-libp2p-circuit/compare/v0.2.1...v0.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Steven Allen
ef1cfe78bd
Merge pull request #899 from libp2p/fix/obserations
fix: keep observed addrs alive as long as their associated connections are alive
5 years ago
Steven Allen
84b923c7bf
fix: address code review
5 years ago
Steven Allen
06d9fc7987
fix: keep observed addrs alive as long as their associated connections are alive
Otherwise, if we're not creating new connections, we'll eventually forget them.
Up until now, this wasn't _too_ much of an issue because our peers would still
remember our addresses. However, we now _tell_ our connected peers when our
addresses change. That means we'll tell our peers to forget where we are,
preventing anyone from finding us.
5 years ago
dependabot-preview[bot]
a276aade96
build(deps): bump github.com/libp2p/go-libp2p-discovery
Bumps [github.com/libp2p/go-libp2p-discovery](https://github.com/libp2p/go-libp2p-discovery ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/libp2p/go-libp2p-discovery/releases )
- [Commits](https://github.com/libp2p/go-libp2p-discovery/compare/v0.3.0...v0.4.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Steven Allen
af58b8095d
Merge pull request #898 from libp2p/fix/set-protocols-race
fix: refactor logic for identifying connections
5 years ago
Steven Allen
d3b7b3b907
test: fix a flaky test
5 years ago
Aarsh Shah
3d676b688c
skip test local addr filtering
5 years ago
Steven Allen
bd040ba050
fix: refactor logic for identifying connections
0. NEVER call `peerstore.SetProtocols(p)` (clear the protocol set). Given the
new identify events, if someone looked in the peerstore at the wrong time, they
could decide that the peer no longer speaks some protocol.
1. Reliably wait for identify before trying to open a stream. The old logic was
_really_ racy.
2. Avoids potentially calling identify on the same connection multiple times.
3. Calls identify as early as possible. Previously, we'd invoke identify on
inbound connections using an event that was only invoked _after_ all `Connected`
event handlers completed. Now we invoke identify from a `Connected` handler.
5 years ago
dependabot-preview[bot]
c1d75c13d1
build(deps): bump github.com/libp2p/go-ws-transport from 0.3.0 to 0.3.1
Bumps [github.com/libp2p/go-ws-transport](https://github.com/libp2p/go-ws-transport ) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/libp2p/go-ws-transport/releases )
- [Commits](https://github.com/libp2p/go-ws-transport/compare/v0.3.0...v0.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
0dd75aff91
build(deps): bump github.com/libp2p/go-stream-muxer-multistream
Bumps [github.com/libp2p/go-stream-muxer-multistream](https://github.com/libp2p/go-stream-muxer-multistream ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/libp2p/go-stream-muxer-multistream/releases )
- [Commits](https://github.com/libp2p/go-stream-muxer-multistream/compare/v0.2.0...v0.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
dependabot-preview[bot]
dde9d47473
build(deps): bump github.com/libp2p/go-conn-security-multistream
Bumps [github.com/libp2p/go-conn-security-multistream](https://github.com/libp2p/go-conn-security-multistream ) from 0.1.0 to 0.2.0.
- [Release notes](https://github.com/libp2p/go-conn-security-multistream/releases )
- [Commits](https://github.com/libp2p/go-conn-security-multistream/compare/v0.1.0...v0.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago