-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support range requests when downloading files #1021
Comments
In what way are range requests used for package resolution? There are no blockers I can think of right now, but it isn't trivial to implement fully. A first step would be to implement it when the file exists locally. If it has to be streamed from the primary server in a replicated setup or from a mirror, then it would require a possibly much more complex implementation. I'm uncertain about the usefulness though, as it is much easier in most cases to put nginx in front and let it handle files directly. This only works with the default storage backend though. |
For servers that do not support PEP 658, we need to download a wheel to determine package metadata for resolution. We can use range requests to download the necessary portion of the wheel instead of the entire thing.
I agree in production it'd make sense to place nginx in front of the server, but I'm just trying to run a lightweight server for testing purposes (which seems like a good part of the intent of this project). |
It should be fairly straight forward to add this to |
The devpi server does not appear to support HTTP range requests when downloading files from the index. This can result in a significant slowdown of downloads during package resolution.
Are there blockers for supporting this?
The text was updated successfully, but these errors were encountered: