JakeChampion opened a new pull request, #14096: URL: https://github.com/apache/trafficserver/pull/14096
`TSHttpTxnIntercept()` and `TSHttpTxnServerIntercept()` replaced `HttpSM::plugin_tunnel` without a check. If a plugin, or two plugins, called these functions two times on one transaction, the `PluginVCCore` of the first call leaked. This change closes the earlier tunnel with `kill_no_connect()` before it makes the new one. `HttpSM` uses the same function for a tunnel that it does not connect. The last intercept continues to win, so the behavior that a plugin sees does not change. The continuation of the earlier intercept gets no event, as before. `HttpSM` sets `plugin_tunnel` to null when it connects the tunnel, so a tunnel that these functions find is always not connected. -- 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]
