From ed6e0febe0a9e341d3998caff0962e0b76b06b7f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 12 Aug 2022 14:20:52 +0200 Subject: [PATCH] connect: close the happy eyeballs loser connection when using QUIC Reviewed-by: Nick Banks Closes #9303 --- lib/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index 76d02a2fde..be9f72117c 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -910,6 +910,8 @@ CURLcode Curl_is_connected(struct Curl_easy *data, conn->tempsock[i] = CURL_SOCKET_BAD; post_SOCKS(data, conn, sockindex, connected); connkeep(conn, "HTTP/3 default"); + if(conn->tempsock[other] != CURL_SOCKET_BAD) + Curl_quic_disconnect(data, conn, other); return CURLE_OK; } /* When a QUIC connect attempt fails, the better error explanation is in