From: Michael Tremer Date: Fri, 7 Feb 2025 19:58:11 +0000 (+0000) Subject: xfer: Ensure we always send the entire buffer X-Git-Tag: 0.9.30~91 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03774afbbd5804561db688791eb9d2aa6a3dbc23;p=pakfire.git xfer: Ensure we always send the entire buffer cURL returns OK even if only parts of the buffer have been sent, so we need to walk through the loop again to make sure all data is sent. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/xfer.c b/src/pakfire/xfer.c index a4b86c42..34afc7ca 100644 --- a/src/pakfire/xfer.c +++ b/src/pakfire/xfer.c @@ -1694,9 +1694,9 @@ int pakfire_xfer_send_message(struct pakfire_xfer* xfer, offset += bytes_sent; switch (r) { - // All done + // Done, but make sure we have sent the entire buffer case CURLE_OK: - return 0; + continue; // We could not send all data, store the message // and wait until the socket is ready