Skip to content

If a process crashes half-way through writing a cache entry to a file cache, it will get corrupted #325

Open
@itamarst

Description

@itamarst

For FileCache this may not be a problem insofar as deserializing will fail? For SeparateBodyFileCache it will be, insofar as it's just a pile-of-bytes for the data in the body file.

pip doesn't have this problem since it writes to a temporary file and then uses os.replace(). CacheControl may wish to adopt this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions