From: Daniel Stenberg Date: Fri, 12 Aug 2022 12:20:52 +0000 (+0200) Subject: connect: close the happy eyeballs loser connection when using QUIC X-Git-Tag: curl-7_85_0~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed6e0febe0a9e341d3998caff0962e0b76b06b7f;p=thirdparty%2Fcurl.git connect: close the happy eyeballs loser connection when using QUIC Reviewed-by: Nick Banks Closes #9303 --- 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