Skip to content

Replace the whole-blob --timeout-ms with a per-chunk / inactivity timeout #1134

Closed

Description

@alpergundogdu

Summary

decdn fetch --timeout-ms (and bundle pull) is an overall deadline for the entire blob fetch. This is mostly useless as a health signal: it wrongly kills legitimate large or slow-but-healthy transfers (a 708 MB pull needs a huge, hand-tuned value), while a small value fails big blobs — the operator has to guess a number tied to blob size × link speed rather than to node health.

Proposal

Replace (or complement) the whole-transfer deadline with a per-chunk / inactivity timeout: reset the timer on each received chunk (or unit of progress), and trip only when the provider goes unresponsive (no progress for X). That catches dead/stalled nodes — the thing a timeout should catch — without penalizing transfer size or link speed.

Applies to both decdn fetch and bundle pull. The current absolute --timeout-ms can be kept as an optional hard cap (default off / very large) but should not be the primary mechanism.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions