From f18565560399c8441cddd8602510b08582531e87 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 22 Dec 2023 14:53:47 +0100 Subject: [PATCH 2/2] hostip: infof debug ouputs --- lib/hostip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hostip.c b/lib/hostip.c index ce347cd36..aa370bd0c 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -1376,10 +1376,11 @@ static CURLcode check_cache(struct Curl_easy *data, Curl_share_lock(data, CURL_LOCK_DATA_DNS, CURL_LOCK_ACCESS_SINGLE); *dns = fetch_addr(data, data->state.async.hostname, data->conn->port, found); if(*found) { + infof(data, "found %s in cache", data->state.async.hostname); if(*dns) (*dns)->inuse++; else { #ifndef CURL_DISABLE_PROXY if(data->conn->bits.httpproxy) @@ -1452,10 +1453,11 @@ CURLcode Curl_once_resolved(struct Curl_easy *data, bool *protocol_done) struct connectdata *conn = data->conn; #ifdef USE_CURL_ASYNC if(data->state.async.dns) { conn->dns_entry = data->state.async.dns; + infof(data, "assign conn->dns_entry to %p", (void *)conn->dns_entry); data->state.async.dns = NULL; } #endif result = Curl_setup_conn(data, protocol_done); -- 2.39.2 (Apple Git-143)