Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circuit Relay v2 follow up work items #1608

Closed
4 tasks done
p-shahi opened this issue Mar 2, 2023 · 0 comments · Fixed by #1619
Closed
4 tasks done

Circuit Relay v2 follow up work items #1608

p-shahi opened this issue Mar 2, 2023 · 0 comments · Fixed by #1619
Assignees

Comments

@p-shahi
Copy link
Member

p-shahi commented Mar 2, 2023

          I am going to merge this which will publish an RC to unblock other efforts as it is functional though it still needs some work in a follow-up before being released.

Originally posted by @achingbrain in #1533 (review)

Tasks

@BigLep BigLep added this to js-libp2p Mar 6, 2023
@BigLep BigLep moved this to 🏃‍♀️In Progress in js-libp2p Mar 6, 2023
achingbrain added a commit that referenced this issue Mar 8, 2023
Code sanitation:

- splits code and config into transport and server
- updates docs
- consolidates relay and circuit tests
- updates relay discovery to use topology
- increases test coverage

Bug fixes:

- if multiple relays are discovered simultaneously, try to reserve a slot in them in series, otherwise we can end up listening on multiple relays by accident
- relay server tags the reserving peer instead of tagging itself
- incoming remote address was missing `p2p-circuit` tuple so we were allowing relay to relay forwarding
- relay client tags outgoing relay connections

fixes: #1608
refs: #1610
achingbrain added a commit that referenced this issue Mar 9, 2023
Code sanitation:

- splits code and config into transport and server
- updates docs
- consolidates relay and circuit tests
- updates relay discovery to use topology
- increases test coverage

Bug fixes:

- if multiple relays are discovered simultaneously, try to reserve a slot in them in series, otherwise we can end up listening on multiple relays by accident
- relay server tags the reserving peer instead of tagging itself
- incoming remote address was missing `p2p-circuit` tuple so we were allowing relay to relay forwarding
- relay client tags outgoing relay connections

fixes: #1608
refs: #1610
achingbrain added a commit that referenced this issue Mar 14, 2023
Code sanitation:

- splits code and config into transport and server
- updates docs
- consolidates relay and circuit tests
- updates relay discovery to use topology
- increases test coverage
- reuses connection gater for acl instead of introducing a new acl mechanism
- adds migration guide

Bug fixes:

- if multiple relays are discovered simultaneously, try to reserve a slot in them in series, otherwise we can end up listening on multiple relays by accident
- relay server tags the reserving peer instead of tagging itself
- incoming remote address was missing `p2p-circuit` tuple so we were allowing relay to relay forwarding
- relay client tags outgoing relay connections
- limit data transfer as total in both directions instead of apply limit to both sides of the relayed stream separately
- allow client to refuse incoming relayed connections

fixes: #1608
refs: #1610
@github-project-automation github-project-automation bot moved this from 🏃‍♀️In Progress to 🎉Done in js-libp2p Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants