Skip to content

libstore: Fix libcurl thread wakeup with curl >= 8.21 - #16090

Merged
Mic92 merged 1 commit into
masterfrom
fix-curl-8.21-wakeup
Jul 1, 2026
Merged

Mic92 merged 1 commit into
masterfrom
fix-curl-8.21-wakeup

Conversation

@xokdvium

@xokdvium xokdvium commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Since curl/curl@2a2104f libcurl now swallows events in curl_multi_perform, so there's a chance that we miss a wakeup.

This is somewhat reproducible on my machine by doing nix flake prefetch https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz.

Another option is to bring back our own wakeup pipe, but that's less portable. Ideally this regression would be fixed in libcurl too...

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Since curl/curl@2a2104f
libcurl now swallows events in curl_multi_perform, so there's a chance that we miss
a wakeup.

This is somewhat reproducible on my machine by doing nix flake prefetch https://channels.nixos.org/nixos-25.11/nixexprs.tar.xz.

Another option is to bring back our own wakeup pipe, but that's less portable.
Ideally this regression would be fixed in libcurl too...
@xokdvium
xokdvium requested a review from Ericson2314 as a code owner July 1, 2026 01:12
@xokdvium
xokdvium marked this pull request as draft July 1, 2026 01:14
@xokdvium
xokdvium marked this pull request as ready for review July 1, 2026 07:37
@Mic92
Mic92 added this pull request to the merge queue Jul 1, 2026
Merged via the queue into master with commit fd941f6 Jul 1, 2026
31 of 32 checks passed
@Mic92
Mic92 deleted the fix-curl-8.21-wakeup branch July 1, 2026 08:25
@xokdvium xokdvium added backport 2.34-maintenance Automatically creates a PR against the branch backport 2.35-maintenance Automatically creates a PR against the branch labels Jul 1, 2026
@internal-nix-ci

Copy link
Copy Markdown

Successfully created backport PR for 2.34-maintenance:

@internal-nix-ci

Copy link
Copy Markdown

Successfully created backport PR for 2.35-maintenance:

lf- pushed a commit to lix-project/lix that referenced this pull request Jul 9, 2026
Since curl/curl@2a2104f
libcurl sometimes just swallows events in curl_multi_perform, we entirely miss them,
and curl_multi_poll blocks forever.

Fixes #1234.

Based on NixOS/nix#16090.

Co-authored-by: Sergei Zimmerman <[email protected]>
Change-Id: I453dce192de0ea9e92bfb0114020dc9d6a6a6964
@xokdvium xokdvium mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.34-maintenance Automatically creates a PR against the branch backport 2.35-maintenance Automatically creates a PR against the branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants