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

Fix retry infinite loops. Fixes #1964 #1967

Merged
merged 2 commits into from
Dec 5, 2021
Merged

Fix retry infinite loops. Fixes #1964 #1967

merged 2 commits into from
Dec 5, 2021

Conversation

dessalines
Copy link
Member

No description provided.

@dessalines dessalines requested a review from Nutomic December 1, 2021 17:15
@@ -17,6 +17,10 @@ struct SendError(pub String);
#[error("Error receiving response, {0}")]
pub struct RecvError(pub String);

/// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object
/// fetch through the search). This should be configurable.
pub static RETRY_LIMIT: i32 = 25;
Copy link
Member

Choose a reason for hiding this comment

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

You might as well move this directly into the config.

@dessalines dessalines merged commit 040770d into main Dec 5, 2021
dessalines added a commit that referenced this pull request Dec 5, 2021
* Fix retry infinite loops. Fixes #1964

* Moving retry_limit to settings
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