From 18aae320151b0c0912b6569762aa3f2f9b17140c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 18 Oct 2006 15:10:49 +0000 Subject: When a connection is re-used, it can be flagged for re-use before the name resolving is completed so we must make sure to survive it and mark the connection as async (ie not yet connected completely). --- lib/url.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 1a5ae15e7..850a9451f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3622,6 +3622,10 @@ static CURLcode CreateConnection(struct SessionHandle *data, infof(data, "Re-using existing connection! (#%ld) with host %s\n", conn->connectindex, conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname); + if(!conn->dns_entry) { + infof(data, "... but it is not resolved yet!\n"); + *async = TRUE; + } } else { /* -- cgit v1.2.3