Lines Matching defs:existing

353  * This may be safely called on a new or existing Curl_easy.
2175 * host name, so that we can reuse an existing connection
2496 * name, proxy type and port number, so that we can reuse an existing
3327 * previously `existing` one for `data`. All relevant info is copied over
3332 struct connectdata *existing)
3335 * be new for this request even when we reuse an existing connection */
3338 Curl_safefree(existing->user);
3339 Curl_safefree(existing->passwd);
3340 existing->user = temp->user;
3341 existing->passwd = temp->passwd;
3347 existing->bits.proxy_user_passwd = temp->bits.proxy_user_passwd;
3348 if(existing->bits.proxy_user_passwd) {
3350 Curl_safefree(existing->http_proxy.user);
3351 Curl_safefree(existing->socks_proxy.user);
3352 Curl_safefree(existing->http_proxy.passwd);
3353 Curl_safefree(existing->socks_proxy.passwd);
3354 existing->http_proxy.user = temp->http_proxy.user;
3355 existing->socks_proxy.user = temp->socks_proxy.user;
3356 existing->http_proxy.passwd = temp->http_proxy.passwd;
3357 existing->socks_proxy.passwd = temp->socks_proxy.passwd;
3371 * a new request to the same remote endpoint of an existing conn.
3372 * We want to reuse an existing conn to the remote endpoint.
3374 * switch `existing` conn to `temp` conn's host settings.
3379 Curl_free_idnconverted_hostname(&existing->host);
3380 Curl_free_idnconverted_hostname(&existing->conn_to_host);
3381 Curl_safefree(existing->host.rawalloc);
3382 Curl_safefree(existing->conn_to_host.rawalloc);
3383 existing->host = temp->host;
3386 existing->conn_to_host = temp->conn_to_host;
3388 existing->conn_to_port = temp->conn_to_port;
3389 existing->remote_port = temp->remote_port;
3390 Curl_safefree(existing->hostname_resolve);
3392 existing->hostname_resolve = temp->hostname_resolve;
3396 existing->bits.reuse = TRUE; /* yes, we're reusing here */
3403 * existing one, and resolves host name.
3422 struct connectdata *existing = NULL;
3639 * reuse an already existing one or if we have to create a
3654 reuse = ConnectionExists(data, conn, &existing, &force_reuse, &waitpipe);
3659 * `existing` and thus we need to cleanup the one we just
3660 * allocated before we can move along and use `existing`.
3662 reuse_conn(data, conn, existing);
3663 conn = existing;
3667 infof(data, "Re-using existing connection with %s %s",
3673 infof(data, "Re-using existing connection with host %s",
3993 /* exclusive: move all existing children underneath the new child */