shukitchan commented on code in PR #9483:
URL: https://github.com/apache/trafficserver/pull/9483#discussion_r1137615876
##########
plugins/experimental/wasm/wasm_main.cc:
##########
@@ -181,11 +189,21 @@ http_event_handler(TSCont contp, TSEvent event, void
*data)
case TS_EVENT_HTTP_READ_CACHE_HDR:
break;
- case TS_EVENT_HTTP_TXN_CLOSE:
+ case TS_EVENT_HTTP_TXN_CLOSE: {
context->onDone();
context->onDelete();
- if (context->wasm() == wasm_config->wasm.get()) {
+ bool found = false;
+ for (auto it = wasm_config->configs.begin(); it !=
wasm_config->configs.end(); it++) {
+ std::shared_ptr<ats_wasm::Wasm> wbp = it->first;
+ if (wbp.get() == context->wasm()) {
+ found = true;
+ }
+
+ break;
Review Comment:
same here. will fix and test more.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]