mirror of
https://github.com/curl/curl.git
synced 2026-06-02 05:24:15 +03:00
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
This commit is contained in:
parent
a0f8fccb1e
commit
00da834156
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue