forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor state tracking variables in filter manager (envoyproxy#35528)
Summary of changes: Fix dual use of the local_complete_ flag. Presently it used for tracking both: end_stream value in iteration of encoder filter chain. stopping decoder filter chain when half close semantics are disabled. The local_complete_ is renamed to observed_encode_end_stream_ and is now used for tracking end_stream value in encoder filter chain iteration only. The decode filter chain is stopped by using the existing flag decoder_filter_chain_aborted_, which up till now was only used to stop filter chain when reset was received. Rename remote_decode_complete_ flag to observed_decode_end_stream_ to match its purpose. Rename remoteDecodeComplete() to decoderObservedEndStream() to better match its meaning. Rename the complete() method to observedEndStream() to better reflect its use. Add stopDecoderFilterChain() (which returns the decoder_filter_chain_aborted_) and use it to check if the decoder filter chain should be stopped (instead of using the local_complete_ flag). --------- Signed-off-by: Yan Avlasov <[email protected]>
- Loading branch information
1 parent
9ea5239
commit 37bdbd1
Showing
4 changed files
with
76 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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