Skip to content

feat(swarm): add retry logic, exponential backoff, and multi-connection support to Swarm. #743

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sujalsalekar
Copy link

Swarm Networking Improvements

This PR makes Swarm more reliable and flexible:

  • Retry Logic:
    When connecting to peers, Swarm now retries a few times with increasing delays if the first attempt fails. This helps handle flaky networks better.

  • Multiple Connections:
    You can now have more than one connection to the same peer, which matches how other libp2p implementations work and makes things more robust.

  • Better Logging:
    Connection attempts, retries, and failures are now clearly logged, making it easier to see what’s happening and debug issues.

@acul71
Copy link
Contributor

acul71 commented Aug 11, 2025

@seetadev @sujalsalekar
What's the status of this?
Ping me if you need help
Is needed for #717

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.

3 participants