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

FileUploader: use correct highWaterMark field #462

Closed
wants to merge 1 commit into from

Conversation

pthieu
Copy link

@pthieu pthieu commented Sep 9, 2018

According to https://nodejs.org/docs/latest-v8.x/api/fs.html#fs_fs_createreadstream_path_options, the field name should be highWaterMark, uppercase M.

The chunks were actually defaulting to 64*1024, which causes longer upload times due to having a lot more requests, which means a higher total RTT.

@pthieu
Copy link
Author

pthieu commented Sep 9, 2018

ping @ttezel

@luanmuniz
Copy link

ping @ttezel

@skorasaurus
Copy link

skorasaurus commented Nov 18, 2019

duplicate of #456 although this PR has a clearer commit message

@pthieu pthieu closed this Mar 21, 2024
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.

3 participants