Skip to content

asyn-ares: abort with OOM error when Curl_dnscache_mk_entry fails#20385

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/asyn-ares-oom
Closed

asyn-ares: abort with OOM error when Curl_dnscache_mk_entry fails#20385
bagder wants to merge 1 commit intomasterfrom
bagder/asyn-ares-oom

Conversation

@bagder
Copy link
Member

@bagder bagder commented Jan 21, 2026

No description provided.

@github-actions github-actions bot added the name lookup DNS and related tech label Jan 21, 2026
@bagder bagder marked this pull request as ready for review January 21, 2026 09:47
@bagder bagder requested a review from Copilot January 21, 2026 09:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the c-ares async resolver flow to treat Curl_dnscache_mk_entry() failure as an out-of-memory condition instead of continuing and potentially mapping it to a resolve error.

Changes:

  • Detect Curl_dnscache_mk_entry() returning NULL and return CURLE_OUT_OF_MEMORY.
  • Simplify subsequent logic assuming the DNS entry exists once created (e.g., unconditional HTTPSRR block + cache add guarded only by result).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@testclutch
Copy link

Analysis of PR #20385 at e27f2a5e:

Test 3024 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 12 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@bagder bagder closed this in d89bc6b Jan 21, 2026
@bagder bagder deleted the bagder/asyn-ares-oom branch January 21, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

name lookup DNS and related tech

Development

Successfully merging this pull request may close these issues.

3 participants