Closed pthieu closed 8 months ago
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.
highWaterMark
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.
64*1024
ping @ttezel
duplicate of https://github.com/ttezel/twit/pull/456 although this PR has a clearer commit message
According to https://nodejs.org/docs/latest-v8.x/api/fs.html#fs_fs_createreadstream_path_options, the field name should be
highWaterMark
, uppercaseM
.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.