Skip to content

Streaming transfer resume re-reads all skipped bytes #55

@kitplummer

Description

@kitplummer

Summary

(From PR #19 review)

The resume implementation in src/storage/streaming_transfer.rs reads and discards all bytes up to the checkpoint offset, re-hashing them for verification. For a 10GB blob resuming at 9GB, this means reading 9GB just to skip forward.

The doc mentions "the caller should handle seeking if possible" but there's no AsyncSeek integration.

Fix

Accept AsyncRead + AsyncSeek and seek past the checkpoint offset, or store a partial hash state in the checkpoint for continuation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions