-
Notifications
You must be signed in to change notification settings - Fork 11
client: Handle get_blob futures being polled serially #77
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
Conversation
Signed-off-by: Colin Walters <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for turning this into a PR!
This is fine by me, but I wonder if it violates the original purpose of the check that you mentioned in #71 (ie: we don't want to allow the client to successfully read to EOF if we have a checksum error about to be reported)...
| /// | ||
| /// The requested size and digest are verified (by the proxy process). | ||
| /// | ||
| /// Note that because of the implementation details of this function, you should |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the docs here, btw.
Yeah, it's a fair point! At least today you'd have to explicitly drop the I think the most elegant thing here would actually be to return a new struct that just A related option is to make the reader only start returning data once the driver has been polled once - that would pretty strictly enforce the use of |
|
...starts to sound like the linear types discussion all over again. I honestly think the best case scenario here might be to try to plumb the checksum failure through the reader API. You objected to that last time we talked about it, I think, but it would completely avoid the need for a separate driver object... It's possible to attach arbitrary additional errors objects to stdlib results... |
|
I wouldn't object at all support to moving the checking into the reader, it's not unusual to wedge things like this into Though there's another option of offering a |
|
composefs-rs does the checksum of the uncompressed data only, which is the only thing that's important to us... In fact, I think we completely discard the manifest at present. |
This is confusing for sure. Closes: bootc-dev#71 Signed-off-by: Colin Walters <[email protected]>
|
OK for now I changed this to just document things. |
|
Hopefully I/we don't forget about this one again ;) |
No description provided.