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

relay first, holepunch later #177

Closed
wants to merge 2 commits into from

Conversation

billiegoose
Copy link
Contributor

@billiegoose billiegoose commented Jun 24, 2024

Currently the swarm doesn't greedily use relays and then switch over to the holepunched connection. I don't know if that's the behavior we want but if it is, then this is my attempt to rectify that.

Given that hyperdht currently STOPS holepunching if a LAN connection is relayed, this could drastically increase the load on the relays unless that behavior is also fixed.

@billiegoose billiegoose requested review from mafintosh and andrewosh and removed request for mafintosh June 24, 2024 20:43
@billiegoose billiegoose marked this pull request as ready for review June 24, 2024 20:45
@billiegoose
Copy link
Contributor Author

billiegoose commented Jun 24, 2024

TODO: add test

Submitted for review to generate discussion.

@billiegoose billiegoose marked this pull request as draft June 26, 2024 03:47
@billiegoose
Copy link
Contributor Author

punting this as part of the major "don't treat the LAN differently" future change.

@billiegoose billiegoose deleted the chore/relay-first-ask-questions-later branch June 28, 2024 12:59
@billiegoose billiegoose self-assigned this Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant