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

Timeouts and HEAD requests for file downloads #751

Merged
merged 3 commits into from
Apr 1, 2024
Merged

Conversation

trehn
Copy link
Member

@trehn trehn commented Feb 23, 2024

addresses #749 and replaces #748

This will add a global default download timeout of 60s. Not having a timeout there before is problematic enough that I don't care about backwards compatibility here. I doubt anyone relies on bw blocking forever. If for some reason a downloaded file needs a longer timeout (because it takes time to generate it server-side for example), this can now be addressed at item level with the new download_timeout attribute.

Also if content_hash is not set for a download file item, the URL will only be checked with a HEAD request instead of downloading the complete file just to throw it away.

@trehn trehn merged commit 9dc47b4 into main Apr 1, 2024
5 of 6 checks passed
@trehn trehn deleted the improve-downloads branch April 1, 2024 21:14
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