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

limit consecutive restarts with no data transfer #129

Merged
merged 1 commit into from
Dec 18, 2020

Conversation

dirkmc
Copy link
Contributor

@dirkmc dirkmc commented Dec 17, 2020

Needed for filecoin-project/lotus#5211

Currently when a push channel stalls (no data is sent for a while) the push channel monitor will attempt to restart the channel.
It's possible that the monitor will keep restarting the channel forever, and the transfer will get stuck.

This PR adds a configurable parameter maxConsecutiveRestarts - the maximum number of restarts in a row to attempt where no data is transferred. When the limit is reached the channel is closed.

@dirkmc dirkmc force-pushed the feat/limit-consec-restarts branch from cb9fa71 to fc47495 Compare December 18, 2020 10:55
@dirkmc dirkmc merged commit c39ebbd into master Dec 18, 2020
@dirkmc dirkmc deleted the feat/limit-consec-restarts branch December 18, 2020 12:54
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.

2 participants