mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
The cache-hit path (serveCachedResponse) recorded on the same HandlerRecorderObject as the calling handler's deferred Record(), producing two records per request. Copy ro at HandleHTTP entry so the sniffer's internal recording stays isolated from the caller's defer. Also zero ro.Time when the sniffer takes over, so the handler's defer Record() skips the now-redundant connection-level record. Fixes 10 files across sniffer and all 8 handlers that support sniffed HTTP forwarding.