From 8e44d1a44605c49ee888900bf00e158dfa2ad203 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sun, 23 Jul 2017 13:35:12 +1200 Subject: [PATCH] Bug 4741: TCP_MISS/500 when resolving raw-IP in URL Add missing call to handler.forwardHits() in ipcache (#28) --- src/ipcache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ipcache.cc b/src/ipcache.cc index 4b4079ff66..c3d4a2d376 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -628,6 +628,7 @@ ipcache_nbgethostbyname_(const char *name, IpCacheLookupForwarder handler) if ((addrs = ipcacheCheckNumeric(name))) { debugs(14, 4, "ipcache_nbgethostbyname: BYPASS for '" << name << "' (already numeric)"); + handler.forwardHits(*addrs); ++IpcacheStats.numeric_hits; const Dns::LookupDetails details; // no error, no lookup handler.finalCallback(addrs, details); -- 2.47.2