connect: close the happy eyeballs loser connection when using QUIC

Reviewed-by: Nick Banks

Closes #9303
This commit is contained in:
Daniel Stenberg 2022-08-12 14:20:52 +02:00
parent 764c958c52
commit ed6e0febe0
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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