From 3eac212af1206ae798436ff018f3d2d77840e759 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 26 Oct 2021 22:49:45 +0200 Subject: [PATCH] Use net_send() from net_send_all() This will make net_send_all() continue to work even if net_send() behavior is changed. --- app/src/util/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/net.c b/app/src/util/net.c index eb98ea59..678d6e67 100644 --- a/app/src/util/net.c +++ b/app/src/util/net.c @@ -137,7 +137,7 @@ ssize_t net_send_all(sc_socket socket, const void *buf, size_t len) { size_t copied = 0; while (len > 0) { - ssize_t w = send(socket, buf, len, 0); + ssize_t w = net_send(socket, buf, len); if (w == -1) { return copied ? (ssize_t) copied : -1; }