You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
time_connect and remote_ip lost when the connect timeout fires during the TLS handshake (regression in 8.11.0) #23318
I use this in my monitoring service to tell a TCP connect timeout apart from a TLS handshake timeout, to measure TCP connection time, and to show the IP that was used. Since 8.11.0 the two cases look identical and the connection time and IP are gone.
I bisected the time_connect "regression" to 2338687 ("multi: make multi_handle_timeout use the connect timeout", #15119) but after reading the PR and code diff I don't really understand better 🫠 if this side-effect is know/intentional or if it's a regression. Current master still has this behaviour.
I also bisected the remote_ip "regression" to another anoter commit: ea6f5c9, "connect: limit update IP info" (#14699), this one looks more intentional but the happy eyeballs issue is not longer present once TCP connection is established. So I would still expect the IP to be present after a successful TCP connection, but I also understand this might be tricky to handle all those cases ^^ I also read about "CF_QUERY_IP_INFO" in the PR but couldn't find any doc how to use this flag and what it does. If the new normal is that the IP in CURLINFO_PRIMARY_IP will only be present after successful TLS handhsake, maybe we should update the doc a bit then, and provide some alternative like CF_QUERY_IP_INFO if relevant.
Thanks!
curl/libcurl version
Reproduced in curl 8.23.0-DEV (Linux) libcurl/8.23.0-DEV OpenSSL/3.5.5 zlib/1.3.1
First discovered in curl 8.18.0 and before that I used curl 8.5.0 without this problem
operating system
Ubuntu 26.04 LTS, Linux 7.0.0 x86_64 (and Ubuntu 24.04)
Hi, I'd like to investigate this issue and work on a fix. I plan to reproduce the regression, review the connection and timeout handling, and add a regression test. Is anyone currently working on this, and would a contribution be welcome?
That was quick 🚀 thanks 👍
I just compiled master with the fix and confirmed the connect time and IP are now present.
While testing this master version I also found another unrelated timing issue which I'm going to report in another ticket.
Activity
connect: keep IP info and connect time when connect fails
connect: keep IP info and connect time when connect fails
connect: keep IP info and connect time when connect fails
R1patil commentedon Oct 9, 2026
Hi, I'd like to investigate this issue and work on a fix. I plan to reproduce the regression, review the connection and timeout handling, and add a regression test. Is anyone currently working on this, and would a contribution be welcome?
icing commentedon Oct 9, 2026
Could you check if #23319 helps here?
jarthod commentedon Oct 9, 2026
That was quick 🚀 thanks 👍
I just compiled master with the fix and confirmed the connect time and IP are now present.
While testing this master version I also found another unrelated timing issue which I'm going to report in another ticket.
connect: keep IP info and connect time when connect fails