-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
WasmBase::start is called for every plugin;
proxy-wasm-cpp-host/src/wasm.cc
Line 593 in 668bc99
| auto plugin_context = wasm_handle->wasm()->start(plugin); |
and inside of it ContextBase::onStart is called:
proxy-wasm-cpp-host/src/wasm.cc
Line 395 in 668bc99
| if (!context_ptr->onStart(plugin)) { |
that results in calling on_vm_start:
proxy-wasm-cpp-host/src/context.cc
Lines 137 to 142 in 668bc99
| if (wasm_->on_vm_start_) { | |
| // Do not set plugin_ as the on_vm_start handler should be independent of the plugin since the | |
| // specific plugin which ends up calling it is not necessarily known by the Wasm module. | |
| result = | |
| wasm_->on_vm_start_(this, id_, static_cast<uint32_t>(wasm()->vm_configuration().size())) | |
| .u64_ != 0; |
Metadata
Metadata
Assignees
Labels
No labels