conncache: connection alive checks intervals

Do not check if a particular connection is alive or not more than once
every second. We did this on every connection reuse which is overkill
when sending many requests to the same host.

Closes #22169
This commit is contained in:
Stefan Eissing 2026-06-25 13:25:35 +02:00 committed by Daniel Stenberg
parent 00d5562650
commit 2f1e94eaed
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 19 additions and 7 deletions

View file

@ -75,7 +75,8 @@ void *Curl_conn_meta_get(struct connectdata *conn, const char *key);
* Return TRUE iff the given connection is considered dead.
*/
bool Curl_conn_seems_dead(struct connectdata *conn,
struct Curl_easy *data);
struct Curl_easy *data,
const struct curltime *pnow);
/**
* Perform upkeep operations on the connection.