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

Always respond with data if it exists #2

Open
Xophmeister opened this issue May 17, 2017 · 0 comments
Open

Always respond with data if it exists #2

Xophmeister opened this issue May 17, 2017 · 0 comments

Comments

@Xophmeister
Copy link
Contributor

If a range request is made and that section of the data is available (even if it is still being fetched from iRODS or having its checksums calculated), then that data should be returned rather than issuing a "please wait"-style response.

We need to decide on how to settle the edge-case of a partial range existing. Do you:

  • Flaunt the request and only return the data that exists?
  • Chunk the response into the data that exists and an ETA for the remaining range?
  • Return the data that exists, then pause/stream the remainder as it becomes available?
  • Fallback to returning nothing but the "please wait" response?

I'd go with the second option...

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