Repository navigation
TcpProxy::CombinedUpstream: Implement watermark callback functions - #34098
Conversation
Signed-off-by: Vikas Choudhary <[email protected]>
|
/assign @alyssawilk |
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
| setEndStreamAndDecodeTimer(); | ||
| } | ||
| if (stop_and_buffer_) { | ||
| return Http::FilterDataStatus::StopIterationAndBuffer; |
There was a problem hiding this comment.
If this change is not added, assertion fails in tcp_proxy.cc
// The upstream should consume all of the data.
// Before there is an upstream the connection should be readDisabled. If the upstream is
// destroyed, there should be no further reads as well.
ASSERT(0 == data.length());
Why we dont need this assertion in HCM case and it is there only in tcp_proxy?
There was a problem hiding this comment.
StopIterationNobuffer is generally called before we quit processing a request. it results in discarding data that's in the filter.
in the tcp proxy case it means the filter manager doesn't consume the data to
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
This reverts commit 2196563. Signed-off-by: Vikas Choudhary <[email protected]>
This reverts commit 9b7bc61. Signed-off-by: Vikas Choudhary <[email protected]>
This reverts commit 148ca65. Signed-off-by: Vikas Choudhary <[email protected]>
This reverts commit 201f6b5. Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
c9227b7 to
5d34935
Compare
25b5a57 to
473d077
Compare
Signed-off-by: Vikas Choudhary <[email protected]>
473d077 to
2c4fe60
Compare
alyssawilk
left a comment
There was a problem hiding this comment.
LGTM with a few questions - just to make sure you verified your tests hit the backup and unwind code?
| if (disable) { | ||
| upstream_requests_.front()->onAboveWriteBufferHighWatermark(); | ||
| } | ||
| upstream_requests_.front()->readDisableOrDefer(disable); |
There was a problem hiding this comment.
this can't actually be a multi-entry list right?
I think I'm going to send out a PR to convert to unique ptr.
There was a problem hiding this comment.
yes, this will always be single entry
| setEndStreamAndDecodeTimer(); | ||
| } | ||
| if (stop_and_buffer_) { | ||
| return Http::FilterDataStatus::StopIterationAndBuffer; |
There was a problem hiding this comment.
StopIterationNobuffer is generally called before we quit processing a request. it results in discarding data that's in the filter.
in the tcp proxy case it means the filter manager doesn't consume the data to
yes, I have verified that it hits backup and unwind code. |
followup to #32991
Commit Message: Implement watermark functions which was a TODO and some cleanup
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]