Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Limit the number of retries when sending messages #48

Closed
Stebalien opened this issue Dec 29, 2018 · 1 comment · Fixed by #72
Closed

Limit the number of retries when sending messages #48

Stebalien opened this issue Dec 29, 2018 · 1 comment · Fixed by #72
Assignees

Comments

@Stebalien
Copy link
Member

We should give up if we keep failing instead of retrying until we fail to connect.

// send wantlist updates
for { // try to send this message until we fail.
if mq.attemptSendAndRecovery(ctx, wlm) {
return
}
}
}

@hannahhoward
Copy link
Contributor

When multiple attemps fail, we should also remove the failed peer from the peer manager.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants