mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
* fix(s3): stream GetObject bodies from disk instead of the heap GetObject read the whole object into a byte array before responding, so every concurrent download of a large object held a full copy in the heap. Add S3Service.openObject, which runs the same dataGeneration check as getObject but opens a file channel instead of reading the bytes. Writes replace the object file with an atomic move, so the open channel keeps serving the version its headers describe. Full, Range and website index responses stream from it and close it on every early exit. * fix(s3): close the object stream when a response fails to build