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: time out DHT network requests separately from query #2524

Merged
merged 5 commits into from
May 7, 2024

Conversation

achingbrain
Copy link
Member

Apply a per-request timeout to each network request in a DHT query.

To avoid having a "one size fits all" timeout, it is adaptive so will increase/decrease based on the average success/failure times during the previous (configurable, default 5s) time interval.

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

@achingbrain achingbrain requested a review from a team as a code owner May 5, 2024 11:00
@achingbrain achingbrain force-pushed the fix/time-out-network-requests branch from 9a08273 to 834ef9b Compare May 5, 2024 11:00
Apply a per-request timeout to each network request in a DHT query.

To avoid having a "one size fits all" timeout, it is adaptive so
will increase/decrease based on the average success/failure times
during the previous (configurable, default 5s) time interval.
@achingbrain achingbrain force-pushed the fix/time-out-network-requests branch from 834ef9b to b9c06e9 Compare May 5, 2024 11:01
@achingbrain achingbrain merged commit bfa7660 into main May 7, 2024
22 checks passed
@achingbrain achingbrain deleted the fix/time-out-network-requests branch May 7, 2024 12:32
@achingbrain achingbrain mentioned this pull request May 7, 2024
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.

None yet

1 participant