add option --s-rd-sz (socket read size):

counterpart of `--s-wr-sz` which existed already

the default (256 KiB) appears optimal in the most popular scenario
(linux host with storage on local physical disk, usually NVMe)

was previously 32 KiB, so large uploads should now use 17% less CPU

also adds sanchecks for values of `--iobuf`, `--s-rd-sz`, `--s-wr-sz`

also adds file-overwrite feature for multipart posts
This commit is contained in:
ed 2024-03-23 16:35:14 +00:00
parent 2b24c50eb7
commit c6acd3a904
8 changed files with 155 additions and 14 deletions

View file

@ -155,7 +155,8 @@ class Cfg(Namespace):
mth={},
mtp=[],
rm_retry="0/0",
s_wr_sz=512 * 1024,
s_rd_sz=256 * 1024,
s_wr_sz=256 * 1024,
sort="href",
srch_hits=99999,
th_crop="y",