Skip to content

Add overall timeout for peer downloads - #38

Merged
tripledoublev merged 1 commit into
mainfrom
add-download-overall-timeout
Jun 9, 2026
Merged

tripledoublev merged 1 commit into
mainfrom
add-download-overall-timeout

Conversation

@tripledoublev

Copy link
Copy Markdown
Collaborator

Summary

  • add Group::download_hash_from_peers_with_timeout so callers can bound the total peer-download request budget
  • keep Group::download_hash_from_peers as the existing no-overall-timeout wrapper for compatibility
  • clamp per-peer attempts and retry backoff sleeps to the remaining overall timeout
  • bump save-dweb-backend to 0.3.9

Verification

  • cargo check
  • cargo test download_hash_from_peers_test -- --nocapture
  • git diff --check

Notes

This lets save-rust delete its local media-specific peer-download copy while keeping the Android-facing overall media download budget.

@tripledoublev
tripledoublev force-pushed the add-download-overall-timeout branch from 023a296 to 9a0ed27 Compare June 9, 2026 15:24
@tripledoublev
tripledoublev merged commit e8966a6 into main Jun 9, 2026
1 check passed
@tripledoublev
tripledoublev deleted the add-download-overall-timeout branch June 9, 2026 15:57
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.

1 participant