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

Ensure partial responses are not written #721

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Nov 13, 2024

various fixes for streaming, especially related to range requests

  • follow up to various edge-case loading optimizations: #709
  • fix: prefer streaming current response via takeStream, not only when size is unknown
  • don't serialize async responses prematurely
  • don't serialize 206 responses if there is size mismatch

Fixes capture of YT videos, for example on: https://www.thejazzpianosite.com/jazz-piano-lessons/jazz-scales/melodic-minor-modes/ that otherwise resulted in partial videos being stored.

- fix: prefer streaming current response via takeStream, not only when size is unknown
- ensure partial range requests are not async fetched, only full responses
- don't serialize zero-payload responses
- don't serialize 206 responses if there is size mismatch
@ikreymer ikreymer requested a review from tw4l November 13, 2024 02:57
@ikreymer
Copy link
Member Author

Merging for now so can do a 1.4.0-beta.0 release

@ikreymer ikreymer merged commit 0b9cd71 into main Nov 14, 2024
4 checks passed
@ikreymer ikreymer deleted the partial-response-dont-store branch November 14, 2024 07:28
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