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

CLI disconnect/reconnect on every retry #558

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Conversation

expede
Copy link
Member

@expede expede commented Oct 9, 2021

Of course now that I have this fix, it hasn't had to retry πŸ˜› πŸ€·β€β™€οΈ This doesn't solve whatever our underlying networking problem is, but gives the CLI a better change of self-correcting in the field.

@expede expede changed the title Disconnect/reconnect on every retry CLI disconnect/reconnect on every retry Oct 9, 2021
@@ -14,7 +14,7 @@ extra-deps:
- cryptostore-0.2.1.0
- dimensions-2.1.1.0
- hfsevents-0.1.6
- ipfs-1.3.1
- ipfs-1.4.0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the IPFS.Peer.disconnect function

Comment on lines +118 to +119
swarmDisconnect peers
swarmConnectWithRetry peers 25
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main event

Copy link
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I can't reproduce the issue witih the old CLI on production right now either. Might be due to low internet traffic in the US at my time here in EU.
The new CLI works fine, too, though. So at least I could test that? πŸ˜„

@expede expede self-assigned this Oct 26, 2021
@expede expede added πŸ› bug Something isn't working πŸ“Ÿ CLI Pertaining to the command line tool labels Oct 26, 2021
@expede expede merged commit 26eab89 into main Oct 29, 2021
@expede expede deleted the disconnect-reconnect branch October 29, 2021 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
πŸ› bug Something isn't working πŸ“Ÿ CLI Pertaining to the command line tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants