Github user ushachar commented on the pull request: https://github.com/apache/trafficserver/pull/194#issuecomment-97664982 It would be better to move all the 'when to debug' logic into plugin space -- you can extend the TSHttpSsnDebugSet API, hook a plugin on the SNI callback and do whatever you want from there instead of adding more code to the already overcomplicated VConn layer. This will also allow you to turn on debugging for specific requests (based on full URLs/headers/whatever) sort of like the xdebug plugin.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---