-
Notifications
You must be signed in to change notification settings - Fork 994
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
When libp2p fails, node never re-attempts to get connection #2674
Labels
Blocked
Blocked by research or external factors
Comments
Not sure about this case, but this pattern helped me to solve re-connection issue in my app: host.Peerstore().ClearAddrs(targetPeerID)
if sw, ok := host.Network().(*swarm.Swarm); ok {
sw.Backoff().Clear(targetPeerID)
}
if err := host.Connect(ctx, *targetPeerAddr); err != nil {
return nil, err
} |
No longer relevant in latest master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure what caused this - but it might be a temporary network glitch:
I'm see a few things wrong with this:
127.0.0.1
should not be in this listThe text was updated successfully, but these errors were encountered: