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

Respect min interval returned by the tracker for failed announces #246

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kannibalox
Copy link

@kannibalox kannibalox commented Sep 22, 2023

This changes the default values for the base class to 0, and relies on the successful parsing of an announce to set them to something sane. If the interval can't be parsed during a failure (from an unrelated failure or just the keys missing), it fails back to the original backoff behavior. However, in order to accommodate the previous logic without modifying the ABI, the backoff timeout is capped at 299 seconds instead of 320.

Fixes #1215

This makes a slightly larger change to the error handling logic, for
the sake of keeping the base behavior while still preserving the
ABI. Now anything that returns an unparseable failure goes through the
normal backoff procedure, but maxes out at 299 seconds instead of 320.
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.

Neither "(min )interval" nor "retry in" (BEP 31) respected when receiving a "failure reason"
1 participant