When using HTTP/2, and having a WASM extension that buffers the request body, if the _on_requestbody or _on_responsebody has to be called multiple times, thenonly a part of the body is available to the extension.
This results in errors or unexpected results if doing any transformation on the body, for example.
Description:
When using HTTP/2, and having a WASM extension that buffers the request body, if the _on_requestbody or _on_responsebody has to be called multiple times, thenonly a part of the body is available to the extension.
This results in errors or unexpected results if doing any transformation on the body, for example.
In the below logs, it can be seen the following:
Http2Visitor is processing the whole 40.055 bytes, but _proxy_on_responsebody is called with end_of_stream in true with only 32768 bytes.
Repro steps:
A docker compose which reproduces the issue, can be found here: https://github.com/balbifm/envoy-config/tree/envoy-35884
Logs: