From: Bachue Zhou Date: Tue, 15 Jun 2021 09:56:12 +0000 (+0800) Subject: quiche: use send() instead of sendto() to avoid macOS issue X-Git-Tag: curl-7_78_0~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8472bb8eac504d05e72c7205278f2b5e323b702;p=thirdparty%2Fcurl.git quiche: use send() instead of sendto() to avoid macOS issue sendto() always returns "Socket is already connected" error on macos Closes #7260 --- diff --git a/lib/vquic/quiche.c b/lib/vquic/quiche.c index b62d88437a..5462f770b7 100644 --- a/lib/vquic/quiche.c +++ b/lib/vquic/quiche.c @@ -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);