proxy-wasm-cpp-host icon indicating copy to clipboard operation
proxy-wasm-cpp-host copied to clipboard

gRPC callbacks are reentrant, defer them

Open PiotrSikora opened this issue 2 years ago • 1 comments

gRPC callbacks are reentrant, leading to callback-during-callback, and crashes in SDKs.

Those should be deferred (similarly to callbacks for HTTP callouts, etc.)

Reported in https://github.com/proxy-wasm/proxy-wasm-rust-sdk/issues/206, although plugins would crash even with deferred call due to unregistered token_id.

cc @mpwarres

PiotrSikora avatar Sep 25 '23 23:09 PiotrSikora

@mpwarres could you take a stab at fixing this?

PiotrSikora avatar Nov 07 '23 21:11 PiotrSikora