Ensures we don't forget addresses observed by connected peers. Previously, this wasn't so bad because our peers would know our addresses, and would be able to direct new peers towards us. However, we'll now tell all of our peers our new address set, so they'll also forget our address :(.
Harden logic around identifying connections.
Note: 2 means that all new streams now wait for identify to complete. Previously, only Connect did this. In practice, this should save time as:
Identify is always one RTT.
Identify starts as soon as we get the connection.
Once identify has completed, all streams can skip the negotiation step.
Otherwise, streams trying to negotiate one of multiple protocols may have to spend several round-trips negotiating.
v0.8.1
Fix a noisy log line.
Add a missing ticker.Stop() to avoid leaking a timer on shutdown.
v0.8.0
Important changes:
The TLS security transport has been added to the default security transports, alongside SECIO. SECIO will still be preferred for the moment.
The WithReachability option included in the previous release has been split into ForceReachabilityPrivate() and ForceReachabilityPublic() to make it clear what this option does.
Other:
Expose AutoNAT throttling options.
Remove use of goprocess from the libp2p host.
v0.7.4
Patch release to update some dependencies. This patch also fixes libp2p/go-libp2p#841.
v0.7.3
Re-disables stream write coalescing until we have a chance to profile it.
Upgrades the swarm.
Commits
ef1cfe7 Merge pull request #899 from libp2p/fix/obserations
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps github.com/libp2p/go-libp2p from 0.7.2 to 0.8.2.
Release notes
Sourced from github.com/libp2p/go-libp2p's releases.
Commits
ef1cfe7
Merge pull request #899 from libp2p/fix/obserations84b923c
fix: address code review06d9fc7
fix: keep observed addrs alive as long as their associated connections are aliveaf58b80
Merge pull request #898 from libp2p/fix/set-protocols-raced3b7b3b
test: fix a flaky test3d676b6
skip test local addr filteringbd040ba
fix: refactor logic for identifying connectionsb77c3dd
Merge pull request #891 from libp2p/dependabot/go_modules/github.com/ipfs/go-...f650f4b
build(deps): bump github.com/ipfs/go-log from 1.0.3 to 1.0.45fa6149
Merge pull request #889 from libp2p/fix/noisy-log-lineDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)