Take a burst allowance off what a transfer check requires

controller.transfer_min_speed is now the speed that is never closed.
A check requires that speed over 60 s less 2 MiB, which covers the
bursts the OS sends data in, so at the default of 64 KiB/s the cutoff
is about 30 KiB/s. The requirement is at least 1 byte, so a transfer
that moved nothing is still closed at low settings.

The slow receiver test sends 16 MiB so that it spans real checks, and
two upload tests with set bursts cover the allowance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-11-20 22:13:51 +00:00
1 parent 42bc31e406
commit 2e273dc630
4 files changed
+81 -18

No files matched your search

+1 -1
View File
@@ -234,7 +234,7 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
},
"controller.transfer_min_speed": {
title: "Transfer Minimum Speed",
description: "KiB/s an upload or download has to move at over 60 seconds to not be closed, 0 for no limit.",
description: "KiB/s at which an upload or download is never closed for moving too slowly, 0 for no limit.",
type: "number",
initialValue: 64,
validator: validators.greaterThanEqualZero,