Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

OnBodyRequest never triggered if onReqeuestHeaders returns stopIteration #138

Closed
bladedancer opened this issue Mar 25, 2021 · 1 comment
Closed

Comments

@bladedancer
Copy link

I'll preface this with it could be user error but my scenario is I'm making a grpc call out to some backend service. The backend server will mutate both the headers and the body. So I need to execute both onRequestHeaders and onRequestBody before getting the result.

The problem is it hangs indefinitely, but I'm told it should work. Assuming it did work once then I believe it's related to this change:

proxy-wasm/proxy-wasm-cpp-host#95

Sampe code is here: https://github.com/bladedancer/envoy-wasm-stopitertest/blob/main/wasm-filter/context.cc#L32.

Is this scenario achievable? Is it a bug or the expected behaviour?

@bladedancer
Copy link
Author

Doh - just noticed I logged this against go. Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant