Title: WASM Calling proxy_send_local_response twice will stuck remote http client(e.g. curl) forever until timeout or interrupted
Description:
I have a wasm running on envoy, and I found http request will be stuck if I call proxy_send_local_response both in on_http_request_headers and on_http_response_headers.
Title: WASM Calling
proxy_send_local_response
twice will stuck remote http client(e.g. curl) forever until timeout or interruptedDescription: I have a wasm running on envoy, and I found http request will be stuck if I call
proxy_send_local_response
both inon_http_request_headers
andon_http_response_headers
.Repro steps: Here is the shortest wasm code:
envoy docker-compose configuration:
and envoy.yaml:
Logs:
And here is log on client side:
I found out that it's caused by this PR https://github.com/envoyproxy/envoy/pull/23049
It occurs since envoy 1.24+ (also Istio 1.16+). If I revert these codes and build, it works again.
I don't know if this behaviour is expected or changed by accident.
It only occurs in my QA cluster (with a higher version of envoy, 1.24+)