mirror of
https://github.com/curl/curl.git
synced 2026-05-14 08:16:20 +03:00
connect: store connection info when really done
Output the 'Connected to...' info message when the connection has been fully established and all information is available. Due to our happy eyeballing, we should not emit info messages in filters, because they may be part of an eyeballing attempt and may be discarded later for another chain. Closes #14897
This commit is contained in:
parent
a33bcc9b53
commit
50166c0de8
4 changed files with 27 additions and 4 deletions
|
|
@ -189,7 +189,6 @@ static CURLcode baller_connected(struct Curl_cfilter *cf,
|
|||
|
||||
switch(cf->conn->alpn) {
|
||||
case CURL_HTTP_VERSION_3:
|
||||
infof(data, "using HTTP/3");
|
||||
break;
|
||||
case CURL_HTTP_VERSION_2:
|
||||
#ifdef USE_NGHTTP2
|
||||
|
|
@ -202,10 +201,8 @@ static CURLcode baller_connected(struct Curl_cfilter *cf,
|
|||
return result;
|
||||
}
|
||||
#endif
|
||||
infof(data, "using HTTP/2");
|
||||
break;
|
||||
default:
|
||||
infof(data, "using HTTP/1.x");
|
||||
break;
|
||||
}
|
||||
ctx->state = CF_HC_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue