Skip to content

cache: FilesystemOrigin.fetch reads the entire blob into memory before returning Bytes, preventing streaming delivery to the client for large blobs #271

Closed

Description

@alpergundogdu

tokio::fs::read in fs.rs buffers the complete file before returning, which means a max_blob_size_mb-sized blob occupies that memory twice (once in the read buffer, once in the Bytes clone). The HttpOrigin likely has the same issue; both should stream via AsyncRead to the cache engine.


Filed via GitDailyReporterBot

Activity

  1. added
    kind:bug
    kind:feature
    prio:high
    on Apr 22, 2026
  2. self-assigned this
    on Apr 25, 2026
  3. assigned and unassigned on May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:bugkind:featureprio:high

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions