Skip to content

Conversation

GrahamDennis
Copy link

If the garbage collector has acquired the global GC lock, but hasn't created the GC socket yet, then a client attempting to connect would get ENOENT. Note that this only happens when the GC runs for the first time on a machine. Subsequently clients will get ECONNREFUSED which was already handled.

Fixes #7370.

Motivation

Context


Add 👍 to pull requests you find important.

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

If the garbage collector has acquired the global GC lock, but hasn't
created the GC socket yet, then a client attempting to connect would
get ENOENT. Note that this only happens when the GC runs for the first
time on a machine. Subsequently clients will get ECONNREFUSED which
was already handled.

Fixes NixOS#7370.
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Sep 2, 2025
@GrahamDennis
Copy link
Author

This is a backport of #8544

@roberth
Copy link
Member

roberth commented Sep 3, 2025

CI failed. I'd be ok to merge when that's fixed. Maybe it's this change, or maybe a fix can be backported, but know that this version is unsupported and unsafe. Time might be better spent on upgrading, fwiw.

@GrahamDennis
Copy link
Author

I can fix CI. And actually I'd love to upgrade, I'm currently blocked by the issue that #13428 fixes. I don't know what the next steps are to be able to get that reviewed / merged. If you can help there, that would be appreciated 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants