Skip to content

Upgrade curl from 8.8.0 to 8.23.0 - #394

Merged
xlamorlette-datadog merged 3 commits into
mainfrom
xlamorlette/upgrade-libcurl
Nov 2, 2026
Merged

xlamorlette-datadog merged 3 commits into
mainfrom
xlamorlette/upgrade-libcurl

Conversation

@xlamorlette-datadog

@xlamorlette-datadog xlamorlette-datadog commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

Upgrade Curl from 8.8.0 (May 2024) to 8.23.0 (October 2026) (see Curl releases).

Motivation

This is to fix an issue with the Datadog Apache module. See detailed explanations in next section. By the way, it is of course a good thing to upgrade the embedded libcurl, even if we were not affected by any of the fixed vulnerabilities (because we use only a very narrow set of features from libcurl).

Additional Notes

The Datadog Apache module crashes (100% CPU usage and errors flooding) on hosts with many virtual hosts and log files.
This is because libcurl uses select() that can’t handle file descriptors above 1024.
The solution is to make libcurl use poll() instead of select().
libcurl doesn’t use poll() and defaults on select() because we package httpd-datadog using cross build, which prevents to detect that poll() is available.
Upgrading libcurl from 8.8.0 to latest available version, 8.23.0 fixes the issue:

The HTTP_ONLY option to build Curl disappeared, so we now have to disable all other protocols one by one.

References

Jira ticket: IDMPL-1217: [C++ Tracer] Upgrade libcurl to get poll() vs select() fix

Contributor Checklist

  • I am the author of this pull request and I own it.
  • I reviewed every line of this pull request.
  • This pull request follows the Contributing Guidelines.

@pr-commenter

pr-commenter Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-11-02 10:03:20

Comparing candidate commit d5a0da6 in PR branch xlamorlette/upgrade-libcurl with baseline commit 60b79e2 in branch main.

Found 0 performance improvements and 2 performance regressions! Performance is the same for 6 metrics, 0 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:BM_HexPadded_uint64/NoPadding

  • 🟥 execution_time [+1.290µs; +1.335µs] or [+3.015%; +3.121%]

scenario:BM_TraceTinyCCSource

  • 🟥 execution_time [+1.703ms; +2.160ms] or [+2.114%; +2.682%]

@xlamorlette-datadog
xlamorlette-datadog force-pushed the xlamorlette/upgrade-libcurl branch from b59c102 to 6aaf548 Compare November 2, 2026 09:42
@xlamorlette-datadog
xlamorlette-datadog marked this pull request as ready for review November 2, 2026 09:43
@xlamorlette-datadog
xlamorlette-datadog requested review from a team as code owners November 2, 2026 09:43
@xlamorlette-datadog
xlamorlette-datadog requested review from Anilm3 and removed request for a team November 2, 2026 09:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T09:46:51.087728Z 6aaf548 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-02T09:48:21.056372Z 6aaf548 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-datadog-us1-prod datadog-datadog-us1-prod Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: FAIL

Removing CURL_ZLIB=OFF re-enables an unintended zlib dependency on fresh configurations where zlib is installed, breaking downstream consumers of the installed static package.

Open Bits AI session

🤖 Bits Code Review · Commit 6aaf548

Comment thread cmake/deps/curl.cmake Resolved
Comment thread cmake/deps/curl.cmake Resolved
@xlamorlette-datadog
xlamorlette-datadog removed request for a team and Anilm3 November 2, 2026 14:20
@xlamorlette-datadog
xlamorlette-datadog merged commit e90d1c7 into main Nov 2, 2026
39 checks passed
@xlamorlette-datadog
xlamorlette-datadog deleted the xlamorlette/upgrade-libcurl branch November 2, 2026 14:36
@xlamorlette-datadog xlamorlette-datadog changed the title Update curl from 8.8.0 to 8.23.0 Upgrade curl from 8.8.0 to 8.23.0 Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants