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
Steven Allen
b77c3ddd66
Merge pull request #891 from libp2p/dependabot/go_modules/github.com/ipfs/go-log-1.0.4
build(deps): bump github.com/ipfs/go-log from 1.0.3 to 1.0.4
5 years ago
dependabot-preview[bot]
f650f4b3df
build(deps): bump github.com/ipfs/go-log from 1.0.3 to 1.0.4
Bumps [github.com/ipfs/go-log](https://github.com/ipfs/go-log ) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/ipfs/go-log/releases )
- [Commits](https://github.com/ipfs/go-log/compare/v1.0.3...v1.0.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
5 years ago
Steven Allen
5fa6149ed2
Merge pull request #889 from libp2p/fix/noisy-log-line
fix: reduce log level of a noisy log line
5 years ago
Steven Allen
e13a3fe3a3
fix: reduce log level of a noisy log line
This will trigger whenever we're, e.g., offline.
5 years ago
Steven Allen
76b080ce81
Merge pull request #888 from fxfactorial/leak
[discovery] missing defer .Stop on ticker
5 years ago
Edgar Aroutiounian
28f45ac904
[discovery] missing defer .Stop on ticker
5 years ago
Will
6f4961ba50
Merge pull request #887 from libp2p/feat/betterMockAddresses
deprioritize unspecified addresses in mock connections
5 years ago
Will Scott
81302e977a
remote mock addresses won't be unspecified. deprioritize those
5 years ago
Steven Allen
3d825d8cba
Merge pull request #884 from libp2p/feat/support-tls
feat: support TLS by default
5 years ago
Steven Allen
eb76a02251
feat: support TLS by default
But don't make it the default per https://github.com/libp2p/go-libp2p/pull/710#pullrequestreview-382182995 .
5 years ago
Steven Allen
a0f66ec93b
Merge pull request #882 from libp2p/feat/throttleOption
Expose option for setting autonat throttling
5 years ago