ywkaras commented on code in PR #11653:
URL: https://github.com/apache/trafficserver/pull/11653#discussion_r1705815067


##########
plugins/header_rewrite/header_rewrite.cc:
##########
@@ -42,8 +42,27 @@ namespace header_rewrite_ns
 DbgCtl dbg_ctl{PLUGIN_NAME_DBG};
 DbgCtl pi_dbg_ctl{PLUGIN_NAME};
 
-std::once_flag initHRWLibs;
-PluginFactory  plugin_factory;
+std::once_flag   initHRWLibs;
+PluginFactory    plugin_factory;
+std::atomic<int> defer{0};

Review Comment:
   Unfortunately, I don't think it can work to have a global defer counter.  A 
per-transaction defer counter is needed.



-- 
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]

Reply via email to