mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Check transfer speed over 60 seconds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19569aefa4
commit
42bc31e406
3 files changed
+4
-4
No files matched your search
@@ -243,13 +243,13 @@ Defaults to 15.
|
|||||||
|
|
||||||
### controller.transfer_min_speed
|
### controller.transfer_min_speed
|
||||||
|
|
||||||
Speed in KiB/s a request to the controller has to move at, measured over 30 seconds, requests moving slower are closed.
|
Speed in KiB/s a request to the controller has to move at, measured over 60 seconds, requests moving slower are closed.
|
||||||
This closes uploads and downloads that have stalled or are sent too slowly to ever finish, while there is no limit on how long a transfer making progress can take.
|
This closes uploads and downloads that have stalled or are sent too slowly to ever finish, while there is no limit on how long a transfer making progress can take.
|
||||||
It applies to saves, mods and exports uploaded to the controller, proxy streams through it, and the body of any other request.
|
It applies to saves, mods and exports uploaded to the controller, proxy streams through it, and the body of any other request.
|
||||||
Time spent waiting for a proxy stream to start is not counted, see controller.proxy_stream_timeout.
|
Time spent waiting for a proxy stream to start is not counted, see controller.proxy_stream_timeout.
|
||||||
Setting it lower than the default is not recommended.
|
Setting it lower than the default is not recommended.
|
||||||
Downloads through a proxy stream are measured on what the controller has handed to the OS.
|
Downloads through a proxy stream are measured on what the controller has handed to the OS.
|
||||||
The OS can buffer a couple of MiB per connection and only accepts more once a large part of that has been sent, so at lower values a download that keeps moving can go 30 seconds without the controller passing anything on and be closed.
|
The OS can buffer a couple of MiB per connection and only accepts more once a large part of that has been sent, so at lower values a download that keeps moving can go 60 seconds without the controller passing anything on and be closed.
|
||||||
Set to 0 for no limit.
|
Set to 0 for no limit.
|
||||||
Must be 0 or greater.
|
Must be 0 or greater.
|
||||||
|
|
||||||
|
|||||||
@@ -857,7 +857,7 @@ async function uploadMod(req: Request, res: Response) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function addRouteHandlers(app: Application, progressCheckIntervalMs = 30_000) {
|
export function addRouteHandlers(app: Application, progressCheckIntervalMs = 60_000) {
|
||||||
app.use(guardRequest(progressCheckIntervalMs));
|
app.use(guardRequest(progressCheckIntervalMs));
|
||||||
app.get("/metrics",
|
app.get("/metrics",
|
||||||
validateUserToken,
|
validateUserToken,
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ export class ControllerConfig extends classes.Config<ControllerConfigFields> {
|
|||||||
},
|
},
|
||||||
"controller.transfer_min_speed": {
|
"controller.transfer_min_speed": {
|
||||||
title: "Transfer Minimum Speed",
|
title: "Transfer Minimum Speed",
|
||||||
description: "KiB/s an upload or download has to move at over 30 seconds to not be closed, 0 for no limit.",
|
description: "KiB/s an upload or download has to move at over 60 seconds to not be closed, 0 for no limit.",
|
||||||
type: "number",
|
type: "number",
|
||||||
initialValue: 64,
|
initialValue: 64,
|
||||||
validator: validators.greaterThanEqualZero,
|
validator: validators.greaterThanEqualZero,
|
||||||
|
|||||||
Reference in new issue
Block a user