summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-12 23:56:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-14 23:14:12 +0200
commit5848f27594284b93676087b06f70b015c4beeee0 (patch)
treeefc187dc8b2f8dc35f4f872b9b6df73ee544ea5b /lib/connect.c
parentbaf7860b7168dd9363b2d594f8d62704b34baeb4 (diff)
downloadcurl-5848f27594284b93676087b06f70b015c4beeee0.tar.gz
connect: connections are persistent by default for HTTP/3
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 1b9ca35c5..aec397296 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -790,6 +790,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
conn->sock[sockindex] = conn->tempsock[i];
conn->ip_addr = conn->tempaddr[i];
conn->tempsock[i] = CURL_SOCKET_BAD;
+ connkeep(conn, "HTTP/3 default");
}
return result;
}
@@ -858,7 +859,9 @@ CURLcode Curl_is_connected(struct connectdata *conn,
else if(rc & CURL_CSELECT_ERR)
(void)verifyconnect(conn->tempsock[i], &error);
+#ifdef ENABLE_QUIC
error:
+#endif
/*
* The connection failed here, we should attempt to connect to the "next
* address" for the given host. But first remember the latest error.