mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:13:33 +03:00
lib: add CURLINFO_CONN_ID and CURLINFO_XFER_ID
- add an `id` long to Curl_easy, -1 on init - once added to a multi (or its own multi), it gets a non-negative number assigned by the connection cache - `id` is unique among all transfers using the same cache until reaching LONG_MAX where it will wrap around. So, not unique eternally. - CURLINFO_CONN_ID returns the connection id attached to data or, if none present, data->state.lastconnect_id - variables and type declared in tool for write out Closes #11185
This commit is contained in:
parent
fdda99c6ee
commit
e024d5665d
31 changed files with 252 additions and 94 deletions
|
|
@ -453,7 +453,7 @@ bool Curl_ssl_getsessionid(struct Curl_cfilter *cf,
|
|||
}
|
||||
}
|
||||
|
||||
DEBUGF(infof(data, DMSG(data, "%s Session ID in cache for %s %s://%s:%d"),
|
||||
DEBUGF(infof(data, "%s Session ID in cache for %s %s://%s:%d",
|
||||
no_match? "Didn't find": "Found",
|
||||
Curl_ssl_cf_is_proxy(cf) ? "proxy" : "host",
|
||||
cf->conn->handler->scheme, connssl->hostname, connssl->port));
|
||||
|
|
@ -601,8 +601,8 @@ CURLcode Curl_ssl_addsessionid(struct Curl_cfilter *cf,
|
|||
if(added)
|
||||
*added = TRUE;
|
||||
|
||||
DEBUGF(infof(data, DMSG(data, "Added Session ID to cache for %s://%s:%d"
|
||||
" [%s]"), store->scheme, store->name, store->remote_port,
|
||||
DEBUGF(infof(data, "Added Session ID to cache for %s://%s:%d [%s]",
|
||||
store->scheme, store->name, store->remote_port,
|
||||
Curl_ssl_cf_is_proxy(cf) ? "PROXY" : "server"));
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue