elonen / lanscatter

Efficient large files distribution app for Local Area Networks
Apache License 2.0
0 stars 1 forks source link

Small files can skew upload time statistics #18

Open elonen opened 4 years ago

elonen commented 4 years ago

In a small swarm, if a peer uploads a lot of small chunks, it will get unprortionally good upload time stats. Maybe change the statistics to bitrate instead (and calculate timeouts from there) to avoid this?

elonen commented 4 years ago

Slow downloaders can still skew it, but it's one less error source.

elonen commented 4 years ago

Alternatively (to using bandwidth as score), fileio.upload_chunk() could always normalize upload times as if upload had been of max chunk_size.