From 910f740ce29f881878e3029ac4a00150ca8b3d8c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 26 Oct 2023 14:03:47 +0200 Subject: [PATCH] CURLOPT_WRITEFUNCTION.3: clarify what libcurl returns for CURL_WRITEFUNC_ERROR It returns CURLE_WRITE_ERROR. It was not previously stated clearly. Reported-by: enWILLYado on github Fixes #12201 Closes #12203 --- docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3 b/docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3 index 083b008b47..138133ceaa 100644 --- a/docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3 @@ -63,7 +63,8 @@ that amount differs from the amount passed to your callback function, it signals an error condition to the library. This causes the transfer to get aborted and the libcurl function used returns \fICURLE_WRITE_ERROR\fP. -You can also abort the transfer by returning CURL_WRITEFUNC_ERROR. (7.87.0) +You can also abort the transfer by returning CURL_WRITEFUNC_ERROR (added in +7.87.0), which makes \fICURLE_WRITE_ERROR\fP get returned. If the callback function returns CURL_WRITEFUNC_PAUSE it pauses this transfer. See \fIcurl_easy_pause(3)\fP for further details. -- 2.47.3