Skip to content

tool: handling of "synthetic" errors - #23300

Closed
icing wants to merge 1 commit into
curl:masterfrom
icing:tool-synthetic-error-handling
Closed

icing wants to merge 1 commit into
curl:masterfrom
icing:tool-synthetic-error-handling

Conversation

@icing

@icing icing commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Certain config failures set the flag synthetic_error which in most cases fail the easy creation (AFAICT, why exactly this flag is needed is a bit dubious). Make sure that config2setopts() always fails with an error when this flag is set.

The write callback also did set synthetic_error which can confuse subsequent transfer as this may happen at any time when a response is coming in. Do not set the flag in the write callback.

Certain config failures set the flag `synthetic_error` which in most
cases fail the easy creation (AFAICT, why exactly this flag is needed
is a bit dubious). Make sure that `config2setopts()` always fails with
an error when this flag is set.

The write callback also did set `synthetic_error` which can confuse
subsequent transfer as this may happen at any time when a response
is coming in. Do not set the flag in the write callback.
@icing
icing requested a review from bagder October 7, 2026 10:43
@bagder bagder closed this in d8363b7 Oct 7, 2026
@dfandrich

Copy link
Copy Markdown
Contributor

The CircleCI openssl-no-proxy build started failing test 375 with this commit: https://circleci.com/gh/curl/curl/187347

test 0375 [Disabled proxy should make curl fail with --proxy]

@bagder

bagder commented Oct 8, 2026

Copy link
Copy Markdown
Member

=> #23320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants