1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-10 11:01:03 +01:00

Merge pull request #6611 from NixOS/backport-6576-to-2.8-maintenance

[Backport 2.8-maintenance] Fix `Connection refused` on daemon socket
This commit is contained in:
Eelco Dolstra 2022-06-07 12:32:14 +02:00 committed by GitHub
commit 4555784afb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1819,7 +1819,7 @@ AutoCloseFD createUnixDomainSocket(const Path & path, mode_t mode)
if (chmod(path.c_str(), mode) == -1) if (chmod(path.c_str(), mode) == -1)
throw SysError("changing permissions on '%1%'", path); throw SysError("changing permissions on '%1%'", path);
if (listen(fdSocket.get(), 5) == -1) if (listen(fdSocket.get(), 100) == -1)
throw SysError("cannot listen on socket '%1%'", path); throw SysError("cannot listen on socket '%1%'", path);
return fdSocket; return fdSocket;