]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: close the happy eyeballs loser connection when using QUIC
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2022 12:20:52 +0000 (14:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2022 14:29:12 +0000 (16:29 +0200)
Reviewed-by: Nick Banks
Closes #9303

lib/connect.c

index 76d02a2fde480e8421e483a54ccfdf98e2092038..be9f72117cbeaa967f6fc7fe6e2b1035681e2f21 100644 (file)
@@ -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