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: large streaming uploads could fail with an invalid SHA-256 hash error #15

Merged
merged 1 commit into from
Jun 2, 2023

Conversation

bradenmacdonald
Copy link
Owner

This is a fix for #12. It's similar to #14 but closer to the problem and includes a test.

Explanation of the bug: a buffer was being re-used before it was fully finished being uploaded. The "large upload" integration test didn't catch this because it had a sleep() and the data was too homogenous, so that buffer reuse didn't change the data.

…6' header does not match what was computed."

because a buffer was being re-used before it was fully finished being uploaded. The test didn't catch this because it had a sleep() and the data was too homogenous, so that buffer reuse didn't change the data.
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