mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04: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
@ -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…
Reference in New Issue
Block a user