Skip to content

fix: simplify streaming of server writes #137

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

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Conversation

eduardoboucas
Copy link
Member

Which problem is this pull request solving?

We've seen some intermittent failures when handling set() calls in the Blobs server, where we seem to write a zero-bytes file to the final location.

This PR attempts to solve that by simplifying the logic for handling the streaming of these requests, replacing pipe() with the better pipeline().

@eduardoboucas eduardoboucas requested a review from a team as a code owner January 15, 2024 14:13
Copy link

netlify bot commented Jan 15, 2024

Deploy Preview for blobs-js ready!

Name Link
🔨 Latest commit 3e4aedd
🔍 Latest deploy log https://app.netlify.com/sites/blobs-js/deploys/65a5432785af1e00082b2983
😎 Deploy Preview https://deploy-preview-137--blobs-js.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Jan 15, 2024
Skn0tt
Skn0tt previously approved these changes Jan 15, 2024
Copy link

@orinokai orinokai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems like it should help, thanks @eduardoboucas

@eduardoboucas eduardoboucas merged commit ae5bdf9 into main Jan 15, 2024
@eduardoboucas eduardoboucas deleted the fix/copy-stream branch January 15, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants