diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-16 08:46:12 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-16 13:37:26 +0200 |
commit | 00da834156a4b3d7c71cbe21964d053be0db2f57 (patch) | |
tree | 1a01f94e28a176b494607933e891311b2195c054 /lib/vquic | |
parent | a0f8fccb1e06910580bc3c4e1c55ef1bd962a677 (diff) |
quiche: persist connection details
... like we do for other protocols at connect time. This makes "curl -I"
and other things work.
Reported-by: George Liu
Fixes #4358
Closes #4360
Diffstat (limited to 'lib/vquic')
-rw-r--r-- | lib/vquic/quiche.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c index 7f9b34a1e..4d53d1535 100644 --- a/lib/vquic/quiche.c +++ b/lib/vquic/quiche.c @@ -203,9 +203,8 @@ CURLcode Curl_quic_connect(struct connectdata *conn, curl_socket_t sockfd, if(result) return result; -#if 0 /* store the used address as a string */ - if(!Curl_addr2string((struct sockaddr*)addr, + if(!Curl_addr2string((struct sockaddr*)addr, addrlen, conn->primary_ip, &conn->primary_port)) { char buffer[STRERROR_LEN]; failf(data, "ssrem inet_ntop() failed with errno %d: %s", @@ -213,7 +212,8 @@ CURLcode Curl_quic_connect(struct connectdata *conn, curl_socket_t sockfd, return CURLE_BAD_FUNCTION_ARGUMENT; } memcpy(conn->ip_addr_str, conn->primary_ip, MAX_IPADR_LEN); -#endif + Curl_persistconninfo(conn); + /* for connection reuse purposes: */ conn->ssl[FIRSTSOCKET].state = ssl_connection_complete; |