From: Daniel Stenberg Date: Wed, 18 Oct 2006 15:10:49 +0000 (+0000) Subject: When a connection is re-used, it can be flagged for re-use before the name X-Git-Tag: curl-7_16_0~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18aae320151b0c0912b6569762aa3f2f9b17140c;p=thirdparty%2Fcurl.git 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). --- diff --git a/lib/url.c b/lib/url.c index 1a5ae15e7d..850a9451fe 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 { /*