Skip to content

Commit

Permalink
CURLOPT_WRITEFUNCTION.3: clarify what libcurl returns for CURL_WRITEF…
Browse files Browse the repository at this point in the history
…UNC_ERROR

It returns CURLE_WRITE_ERROR. It was not previously stated clearly.

Reported-by: enWILLYado on github
Fixes #12201
  • Loading branch information
bagder committed Oct 26, 2023
1 parent 6ec70a9 commit 89bc4f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/libcurl/opts/CURLOPT_WRITEFUNCTION.3
Expand Up @@ -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.
Expand Down

0 comments on commit 89bc4f0

Please sign in to comment.