mirror of
https://github.com/curl/curl.git
synced 2026-05-13 20:26:19 +03:00
connect: limit update IP info
Update IP related information at the connection and the transfer in two places only: once the filter chain connects and when a transfer is added to a connection. The latter only updates on reuse when the filters already are connected. The only user of that information before a full connect is the HAProxy filter. Add cfilter CF_QUERY_IP_INFO query to let it find the information from the filters "below". This solves two issues with the previous version: - updates where often done twice with the same info - happy eyeballing filter "forks" could overwrite each others updates before the full winner was determined. Closes #14699
This commit is contained in:
parent
87f0a79439
commit
ea6f5c9f0f
15 changed files with 122 additions and 77 deletions
|
|
@ -210,8 +210,6 @@ static CURLcode baller_connected(struct Curl_cfilter *cf,
|
|||
}
|
||||
ctx->state = CF_HC_SUCCESS;
|
||||
cf->connected = TRUE;
|
||||
Curl_conn_cf_cntrl(cf->next, data, TRUE,
|
||||
CF_CTRL_CONN_INFO_UPDATE, 0, NULL);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue