diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-04 12:35:18 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-04 13:17:17 +0200 |
commit | ec153ec48170e8a1fd047f458cc0eabef247cea8 (patch) | |
tree | dd26129047efb386d622cd7757c754143ee2b52b | |
parent | d2dfa3e68941c4dd6e7261d38bcf7fb5b889d275 (diff) | |
download | curl-bagder/quic-happyeyeballs.tar.gz |
connect: make happy eyeballs work for QUIC (again)bagder/quic-happyeyeballs
Follow-up from dbd16c3e256c6c
-rw-r--r-- | lib/connect.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c index b67d17722..1d26d7bc0 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -873,8 +873,16 @@ CURLcode Curl_is_connected(struct connectdata *conn, conn->tempsock[i] = CURL_SOCKET_BAD; post_SOCKS(conn, sockindex, connected); connkeep(conn, "HTTP/3 default"); + return result; } - return result; + /* should we try another protocol family? */ + if(i == 0 && !conn->parallel_connect && + (Curl_timediff(now, conn->connecttime) >= + data->set.happy_eyeballs_timeout)) { + conn->parallel_connect = TRUE; /* starting now */ + trynextip(conn, sockindex, 1); + } + continue; } #endif |