-
Notifications
You must be signed in to change notification settings - Fork 44
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
NewReadOnly fails on exhausted ReadSeeker #336
Comments
yeah, I think you're right, because the non- @masih @willscott any memories of why we might be special-casing a |
the unwrapping / wrapping is mostly there for handling streaming use cases - if we're getting a car inbound as a reader over the network we want to be wrapping/unwrapping it such that we are pulling from the underlying buffer as we get the data. |
+1 for consistency in behaviour; thank you for pointing this out. |
I'm not sure I fully understand this, I wouldn't expect In terms of next steps, we could add a check for a |
Observe the workaround at lines 81~83 in the sequence here. A potential fix is to rewind when the argument is a ReadSeeker, before dropping to the Reader part.
The text was updated successfully, but these errors were encountered: