New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return CURLE_WRITE_ERROR when CURLOPT_WRITEFUNCTION callback returns CURL_WRITEFUNC_ERROR #12201
Comments
So, what did you see instead? What is the failure you'd like to report? |
See the Line 334 in 6ec70a9
When a |
Probably this report should be a suggestion to have a |
I still don't understand. Your callback returns What are you saying is returned and what are you saying you think should have been returned? |
Yes, literally if the So, my suggestion is: return |
Yes, maybe |
…UNC_ERROR It returns CURLE_WRITE_ERROR. It was not previously stated clearly. Reported-by: enWILLYado on github Fixes #12201
Thanks @bagder , please, consider to add a new |
I like this idea! |
... which makes libcurl return CURLE_ABORTED_BY_CALLBACK as error instead of CURLE_WRITE_ERROR. Ref: #12201
…UNC_ERROR It returns CURLE_WRITE_ERROR. It was not previously stated clearly. Reported-by: enWILLYado on github Fixes curl#12201 Closes curl#12203
I did this
Make a
CURLOPT_WRITEFUNCTION
callback that returnsCURL_WRITEFUNC_ERROR
in order to abort the curl session.For instance, if a large download need to be aborted without errors by user.
I expected the following
The cURL session must return
CURLE_ABORTED_BY_CALLBACK
.curl/libcurl version
lib environment, last version
operating system
Unix ARM.
The text was updated successfully, but these errors were encountered: