Skip to content
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

lib: CURL_WRITEFUNC_ABORT is a new write callback error #12208

Closed
wants to merge 2 commits into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 26, 2023

... which makes libcurl return CURLE_ABORTED_BY_CALLBACK as error instead of CURLE_WRITE_ERROR.

Ref: #12201

... which makes libcurl return CURLE_ABORTED_BY_CALLBACK as error
instead of CURLE_WRITE_ERROR.

Ref: #12201
.. and add CURL_WRITEFUNC_ABORT symbol to os400 symbol list
@bagder
Copy link
Member Author

bagder commented Nov 2, 2023

I'm having seconds thoughts on this PR. Does this really add enough value?

@jay jay added the needs-votes Pull-request in need of thumbs-ups to make progress label Nov 3, 2023
@jay
Copy link
Member

jay commented Nov 3, 2023

I'm having seconds thoughts on this PR. Does this really add enough value?

As I understand it the user that requested this feature wants to be able to distinguish between a callback error and a write error caused by any other libcurl function. In practice I doubt that's much of an issue, judging by the results of git grep CURLE_WRITE_ERROR lib. OTOH I like it for consistency. The read function has CURL_READFUNC_ABORT => CURLE_ABORTED_BY_CALLBACK and so it makes sense to have CURL_WRITEFUNC_ABORT => CURLE_ABORTED_BY_CALLBACK.

I tagged this as needs-votes and we can wait for more feedback.

@bagder bagder added the feature-window A merge of this requires an open feature window label Nov 13, 2023
@bagder
Copy link
Member Author

bagder commented Dec 18, 2023

No one has voted in favor, and I think most users already provide their own error reason in a private struct field already if they want one. I think this PR only makes adds new code path combinations for very little extra gain or use.

@bagder bagder closed this Dec 18, 2023
@bagder bagder deleted the bagder/CURL_WRITEFUNC_ABORT branch March 11, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-window A merge of this requires an open feature window libcurl API needs-votes Pull-request in need of thumbs-ups to make progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants