Commit 18aae320 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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).
parent a8996b9e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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 {
    /*