ywkaras commented on a change in pull request #6800:
URL: https://github.com/apache/trafficserver/pull/6800#discussion_r427534131



##########
File path: include/tscpp/api/Plugin.h
##########
@@ -58,6 +58,7 @@ class Plugin : noncopyable
     HOOK_READ_REQUEST_HEADERS,  /**< This hook will be fired after the request 
is read. */
     HOOK_READ_CACHE_HEADERS,    /**< This hook will be fired after the CACHE 
hdrs. */
     HOOK_CACHE_LOOKUP_COMPLETE, /**< This hook will be fired after cache 
lookup complete. */
+    HOOK_TXN_CLOSE,             /**< This hook will be fired after send 
response headers. */

Review comment:
       I think you should add 'TSAssert(hook_type != Plugin::HOOK_TXN_CLOSE);' 
after this line:
   
https://github.com/apache/trafficserver/blob/3376d438b4a6410187e1ddedd87d2e89279ec196/src/tscpp/api/GlobalPlugin.cc#L89




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to