cfilters: CF_TYPE_SETUP connection filter

Connection filters can now carry the flag CF_TYPE_SETUP, indicating that
they are only needed during connection setup, e.g. connect.

Once the connection is fully established, those filter are removed
again. This frees resources and also makes the filter (call) chains
shorter.

Closes #21269
This commit is contained in:
Stefan Eissing 2026-04-08 14:37:45 +02:00 committed by Daniel Stenberg
parent a28540787c
commit ef49d42a2c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 27 additions and 5 deletions

View file

@ -743,7 +743,7 @@ static void cf_hc_destroy(struct Curl_cfilter *cf, struct Curl_easy *data)
struct Curl_cftype Curl_cft_http_connect = {
"HTTPS-CONNECT",
0,
CF_TYPE_SETUP,
CURL_LOG_LVL_NONE,
cf_hc_destroy,
cf_hc_connect,