-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat: EnableHolePunching by default #8748
Conversation
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. ipfs/kubo#8748
b3a0b98
to
4adc4d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have the relay discovery logic in libp2p yet. This PR should be blocked on that.
@lidel : I'm game to talk about this more verbally, but are we comfortable turning this on by default? I'm worried we're doing large scale testing in production rather than pushing to have a way to verify this has no adverse effects in a controlled environment like testground. |
@marten-seemann : is there a go-libp2p issue for this we can link to? |
Here is the issue: libp2p/go-libp2p#1351 I'll denote this issue as blocked on that. |
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. ipfs/kubo#8748
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. ipfs/kubo#8748
5f3d63e
to
f63bbfd
Compare
This fixes interop tests when Swarm.EnableHolePunching in go-ipfs is enabled by default. Ref. ipfs/kubo#8748
2ec71d1
to
5c1a1a3
Compare
59c16c3
to
25950f3
Compare
a60e471
to
bd6c571
Compare
Current status: blocked by one [email protected] bug
@BigLep fysa this means we either need [email protected] with the fix, or enabling hole punching needs to wait until 0.20.0. |
253bd06
to
61560ae
Compare
bd6c571
to
4e92f74
Compare
} | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from standup: add an info log here noting that hole punching was silently turned off
if flag != config.Default { | ||
log.Fatal("Failed to enable `Swarm.EnableHolePunching`, it requires `Swarm.RelayClient.Enabled` to be true.") | ||
} else { | ||
log.Info("HolePunching has been disabled due to the RelayClient being disabled.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lidel this comment was added per https://github.com/ipfs/go-ipfs/pull/8748/files#r863946425.
We're going to release the RC with this, but if you'd like to change the wording or have an objection to the logic we can revert during the RC process
…ts default state silently turn off hole punching instead of panicking
…n it is left as the default but the relay client is disabled.
deb2a67
to
185971b
Compare
This PR continues epic from #8562:
Swarm.EnableHolePunching
totrue
.EnableHolePunching
requiringRelayClient
to be enabled