elliottt opened PR #7527 from elliottt:trevor/validate-content-length
to bytecodealliance:main
:
Make use of immutable header state to track how much has been written to an output-body stream, ensuring that we write exactly as much as was mentioned in the
Content-Length
header.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
elliottt requested pchickey for a review on PR #7527.
elliottt requested wasmtime-core-reviewers for a review on PR #7527.
pchickey submitted PR review.
elliottt updated PR #7527.
elliottt updated PR #7527.
elliottt updated PR #7527.
alexcrichton submitted PR review.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Could this take
usize
instead ofu64
to move the cast into here instead of handling that at all callers?
alexcrichton created PR review comment:
Also could this method have documentation as to its return value? (plus the one below)
alexcrichton created PR review comment:
Could this use matching to avoid the
unwrap()
?
alexcrichton created PR review comment:
I'm not 100% sure as to the context of this comment but sending on a oneshot does not guarantee the message is received, it's only queued up at that time to possible be received in the future.
elliottt updated PR #7527.
elliottt submitted PR review.
elliottt created PR review comment:
I was wondering if we would potentially block on the oneshot send if there was nothing already waiting to receive it. It sounds like that's not the case, so I'll remove the TODO. Thanks!
elliottt updated PR #7527.
elliottt merged PR #7527.
Last updated: Nov 22 2024 at 16:03 UTC