Expand description
In-flight upload sessions.
Bytes land in a staging file and are renamed into place only after the whole transfer verifies. A partial file therefore never appears at the destination — a consumer polling that path sees nothing or sees the finished article.
Structs§
- Finished
Upload - A session whose bytes are all in and whose digest has been computed.
- Upload
Store - All in-flight uploads for this process.
Enums§
- Upload
Error - Why an upload operation was refused.
Constants§
- DEFAULT_
CHUNK_ SIZE - Chunk size advertised to clients, and the ceiling a chunk may not exceed.
- MAX_
CHUNK_ SIZE - Largest value
--fs-chunk-sizemay name. At or above the relay’s ceiling every relayed transfer would 413, and the symptom looks like a server bug. - SESSION_
TTL - How long a session may sit idle before it is swept.
Functions§
- sweep_
orphan_ parts - Remove staging files left behind by a previous run.
- sweep_
orphan_ parts_ in sweep_orphan_partsagainst one staging directory, removing only files that have been untouched for at leastmin_age.