Repository navigation
Conversation
… state update guard Signed-off-by: wbpcode <[email protected]>
Signed-off-by: wbpcode <[email protected]>
wbpcode
requested review from
mattklein123,
tyxia,
yanavlasov and
yanjunxiang-google
as code owners
October 22, 2026 15:18
…keep the ext_proc inject guard Signed-off-by: wbpcode <[email protected]>
This was referenced Oct 23, 2026
Contributor
|
@paul-r-gall ^^^ |
Signed-off-by: wbpcode <[email protected]>
… dev-positional-observed-end-stream
Contributor
|
/assign @yanjunxiang-google |
Member
Author
|
because all existing reviews happens on #48660, and we iterate a lot. I will close this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit Message: http: track the observed end of stream per filter
Additional Description:
The end_stream computed when a stopped filter resumes (
commonContinue()) previously read the stream-levelobserved_[de|en]code_end_stream_flag, which records that the codec has seen the end of the stream. For filters that hold data and re-inject it (ext_proc style), that flag is positionally wrong: the end of the stream may not have reached the resuming filter yet. #43175 fixed the two-filter instance of this (#41654) by lettinginject[De|En]codedDataToFilterChain()rewrite the stream-level flag under the runtime guard. That mechanism is last-writer-wins on a single shared flag, which is only correct while there is one injecting filter upstream of any resuming filter: with three or more stopping/injecting filters, an upstream filter's finalinject(end_stream=true)can land between a mid-chain filter's injections and a downstream filter's resume, making the downstream filter release buffered data with a prematureend_stream=true(truncating the remaining body).Here is the A → B → C timeline:
end_stream=true(a1, false)(b1, false)(a2, true)continueDecoding()and thendoData(observedEndStream() && ...)This PR replaces the mechanism with a per-filter
observed_end_stream_marker: frame deliveries and parked frames latch it at the position they actually reached, and the inject APIs author it at the injecting filter's own position only. Resumption reads the resuming filter's own marker, so the computation is correct for any number of stopping/injecting filters. The stream-level flags are no longer modified by data injection.Risk Level: Medium. Core filter manager end_stream handling.
Testing: unit.
Docs Changes: N/A
Release Notes: added.