thrift filter: support skip decoding data after metadata in the thrift message (#13592)
Fixes #13082 Support skip decoding data after metadata in the thrift message. In payload_passthrough mode, there are some issues: Envoy cannot detect some errors and exceptions ( e.g. a reply that contains exceptions ). It's possible to improve this by peeking beginning of the payload. payload_passthrough controls both request and response path. It can be split into two options if we want more fine-grained control. FilterStatus passthroughData(Buffer::Instance& data, uint64_t bytes_to_passthrough) will not prohibit custom filters to modify buffer. Now it is assumed custom filters won't do that, otherwise behavior is undefined. Risk Level: Medium Testing: unit test: config decoder router conn_manager integration: add an parameter payload_passthrough manual: send requests and verify responses Signed-off-by: Tong Cai <caitong93@gmail.com> Mirrored from https://github.com/envoyproxy/envoy @ 2aee439cd15762cecda768a481b33bd88c999086pull/623/head
parent
d77fdefd58
commit
365457f885
2 changed files with 14 additions and 2 deletions
Loading…
Reference in new issue