Skip to content

feat(translator): implement buffer limit support in CTP#3058

Merged
arkodg merged 5 commits intoenvoyproxy:mainfrom
yaelSchechter:buffer-limit-impl
Apr 5, 2024
Merged

feat(translator): implement buffer limit support in CTP#3058
arkodg merged 5 commits intoenvoyproxy:mainfrom
yaelSchechter:buffer-limit-impl

Conversation

@yaelSchechter
Copy link
Copy Markdown
Contributor

What type of PR is this?
Implement buffer limit in ClientTrafficPolicy
Follow up of #2805

Fixes #2600

Signed-off-by: Yael Shechter <yael.shechter@sap.com>
@yaelSchechter yaelSchechter requested a review from a team as a code owner March 29, 2024 15:36
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.56%. Comparing base (9416798) to head (78db8c5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3058      +/-   ##
==========================================
+ Coverage   66.54%   66.56%   +0.02%     
==========================================
  Files         157      157              
  Lines       21956    21971      +15     
==========================================
+ Hits        14611    14626      +15     
  Misses       6502     6502              
  Partials      843      843              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

return fmt.Errorf("invalid BufferLimit value %s", connection.BufferLimit.String())
}
if bufferLimit < 0 || bufferLimit > math.MaxUint32 {
return fmt.Errorf("BufferLimit value %d out of range", bufferLimit)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use connection.BufferLimit.String() here as well? It makes the error a bit more clear to the end user, as that's the value that was provided before the translation to bytes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks

@yaelSchechter
Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks 🚀 !

@arkodg arkodg merged commit 6941624 into envoyproxy:main Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a knob to make per_connection_buffer_limit_bytes configurable

3 participants