summaryrefslogtreecommitdiff
path: root/lib/quic.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-06-15 16:17:55 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-06-18 00:20:42 +0200
commitdc90f510657875a95d8f82def2c1e79c7284c9dc (patch)
tree432a53fd7aec4d10e9b7ba79b872cb626c9c143c /lib/quic.h
parent325866fd6fdd80fa582dce5a1acb4a88ce51f5c1 (diff)
downloadcurl-dc90f510657875a95d8f82def2c1e79c7284c9dc.tar.gz
connect: improve happy eyeballs handling
For QUIC but also for regular TCP when the second family runs out of IPs with a failure while the first family is still trying to connect. Separated the timeout handling for IPv4 and IPv6 connections when they both have a number of addresses to iterate over.
Diffstat (limited to 'lib/quic.h')
-rw-r--r--lib/quic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/quic.h b/lib/quic.h
index 1eb23e976..8e7df90ea 100644
--- a/lib/quic.h
+++ b/lib/quic.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -47,11 +47,13 @@ int Curl_quic_ver(char *p, size_t len);
CURLcode Curl_quic_done_sending(struct connectdata *conn);
void Curl_quic_done(struct Curl_easy *data, bool premature);
bool Curl_quic_data_pending(const struct Curl_easy *data);
+void Curl_quic_disconnect(struct connectdata *conn, int tempindex);
#else /* ENABLE_QUIC */
#define Curl_quic_done_sending(x)
#define Curl_quic_done(x,y)
#define Curl_quic_data_pending(x)
+#define Curl_quic_disconnect(x,y)
#endif /* !ENABLE_QUIC */
#endif /* HEADER_CURL_QUIC_H */