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

reimplement #373 to work on Windows #384

Merged
merged 1 commit into from
Feb 7, 2019
Merged

Conversation

kherock
Copy link
Collaborator

@kherock kherock commented Feb 7, 2019

This ensures no file handles are left open after receiving an unsatisfiable range request by never opening the stream in the first place.

Also I found that on my end, the value reported by fs.ReadStream#byteRead was often 0 bytes since I'm guessing that value only reflects what has been lazily read.

This ensures no file handles are left open after receiving an unsatisfiable range request by never opening the stream in the first place.
@kherock kherock force-pushed the fix-range-requests-windows branch from 06a57cc to 0e77615 Compare February 7, 2019 00:19
@kherock kherock merged commit 10bd3b2 into master Feb 7, 2019
@kherock kherock deleted the fix-range-requests-windows branch February 7, 2019 04:05
@leontastic
Copy link
Collaborator

Solid refactor @kherock excellent work!

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

Successfully merging this pull request may close these issues.

2 participants