Skip to content

Refactor ZIP archiving methods for thread safety #6234

Open
@mrsaicharan1

Description

@mrsaicharan1

Is your feature request related to a problem? Please describe.
Currently, make_archive from shutil is not thread-safe & this makes it difficult in the scenarios of multiple users requesting the same file at a particular instant.

Describe the solution you'd like

https://bugs.python.org/issue14099
https://docs.python.org/3.5/whatsnew/changelog.html#id93
From Python 3.5.5, writing to zipfile has been made thread-safe and this should be followed for archiving throughout the codebase to ensure proper archive downloads.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions