Skip to main content

rejects_as_empty

Function rejects_as_empty 

Source
pub fn rejects_as_empty(downloaded: u64) -> Option<&'static str>
Expand description

Why a finished transfer must not be accepted, if it must not be.

A media file is never legitimately empty, and completing an empty one is worse than failing: the row goes completed, the item shows as available offline, and playback later stalls on a file with nothing in it. A server that answered 200 with no body — an error page, a transcode that produced nothing — used to land exactly there.

Reported as a network error so the existing retry budget applies and the .part file is kept for a resume.

TRACES: UR-019 | DR-168 | UT-168