1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

connect: connections are persistent by default for HTTP/3

This commit is contained in:
Daniel Stenberg 2019-08-12 23:56:07 +02:00
parent baf7860b71
commit 5848f27594
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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.