bryancall opened a new pull request, #12786: URL: https://github.com/apache/trafficserver/pull/12786
Add new SquidLogCode to identify when CONNECT tunnels time out due to active timeout. This makes tunnel timeouts visible in access logs via the crc (cache result code) field. **Problem:** Previously, tunnel timeouts were not distinguishable in logs - users could only see them in DEBUG logs. **Solution:** - Add `ERR_TUN_ACTIVE_TIMEOUT = 'T'` to SquidLogCode enum - Set the squid code in `tunnel_handler_ssl_producer()` and `tunnel_handler_ssl_consumer()` on `VC_EVENT_ACTIVE_TIMEOUT` - Add string mapping in Log.cc **Result:** Access logs now show `crc=ERR_TUN_ACTIVE_TIMEOUT` for timed-out CONNECT tunnels. **Testing:** Includes autotest `tunnel_active_timeout.test.py` that verifies the squid code is logged correctly. Addresses [YTSATS-4446](https://ouryahoo.atlassian.net/browse/YTSATS-4446) -- 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]
