Skip to content
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

handler.cache: Lazy opening of files and making of upstream connections #95

Closed
mstoykov opened this issue Oct 2, 2015 · 0 comments
Closed

Comments

@mstoykov
Copy link
Collaborator

mstoykov commented Oct 2, 2015

Situation:
4MB parts
1GB file
we have the first 200parts and the last 200MB will have to be retrieved from the upstream.

Currently we will open 200 files and open a connection to the upstream.
This is both wasteful and the upstream connection will timeout which because of #94 will mean the last 200MB will not be served.

Preferably a few parts should be opened at a time (the currently being transmitted and one upfront) and a connection to the upstream should be opened when it's needed or near then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant