Updating netdb on tunneled transactions (e.g., CONNECT requests) is
especially important for origin servers that are only reached via
tunnels. Without updates, requests for such sites may always through a
cache_peer, even if a direct connection to them is much faster.
#include "globals.h"
#include "http.h"
#include "http/Stream.h"
+#include "icmp/net_db.h"
#include "HttpRequest.h"
#include "ip/QosConfig.h"
#include "LogTags.h"
tunnelState->server.setDelayId(DelayId());
#endif
+ netdbPingSite(tunnelState->request->url.host());
+
tunnelState->request->hier.resetPeerNotes(conn, tunnelState->getHost());
tunnelState->server.conn = conn;