mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
pipe: only flush FDs when necessary
should give higher performance on servers with slow storage
This commit is contained in:
parent
aa45fccf11
commit
70a3cf36d1
|
@ -3188,7 +3188,7 @@ class HttpCli(object):
|
|||
data_end = file_size
|
||||
break
|
||||
|
||||
if num_need != len(job["need"]):
|
||||
if num_need != len(job["need"]) and data_end - lower < 8 * M:
|
||||
num_need = len(job["need"])
|
||||
data_end = 0
|
||||
for cid in job["hash"]:
|
||||
|
|
Loading…
Reference in a new issue