Skip to content

Conversation

@kyroslin
Copy link

@kyroslin kyroslin commented Jan 5, 2022

What this PR does / why we need it:

Fix #5915
add limit_size field to the hold_body_chunk method to truncate response_body

Combine limit_size with the context's body_buffer_size, body_hold_flag fields to control the truncation of response body, where limit_size is controlled by specific business plugins

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@kyroslin kyroslin changed the title add limit_size field to the hold_body_chunk method to truncate response_body support limit_size field to the hold_body_chunk method to truncate response_body Jan 5, 2022
@kyroslin kyroslin changed the title support limit_size field to the hold_body_chunk method to truncate response_body feat:support limit_size field to the hold_body_chunk method to truncate response_body Jan 5, 2022
@kyroslin kyroslin closed this Jan 5, 2022
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.

request help: logger plugins supports limit size of request/response body

3 participants