mirror of
https://github.com/curl/curl.git
synced 2026-07-16 05:37:21 +03:00
quiche: use send() instead of sendto() to avoid macOS issue
sendto() always returns "Socket is already connected" error on macos Closes #7260
This commit is contained in:
parent
30e491e5c9
commit
a8472bb8ea
1 changed files with 2 additions and 3 deletions
|
|
@ -422,10 +422,9 @@ static CURLcode flush_egress(struct Curl_easy *data, int sockfd,
|
|||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
|
||||
sent = sendto(sockfd, out, sent, 0,
|
||||
(struct sockaddr *)&send_info.to, send_info.to_len);
|
||||
sent = send(sockfd, out, sent, 0);
|
||||
if(sent < 0) {
|
||||
failf(data, "sendto() returned %zd", sent);
|
||||
failf(data, "send() returned %zd", sent);
|
||||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
} while(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue