Files
lix/src/libutil
Robert Hensing c156155239 createUnixDomainSocket: listen(unix, 5 -> 100)
This solves the error

    error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused

on build farm systems that are loaded but operating normally.

I've seen this happen on an M1 mac running a loaded hercules-ci-agent.
Hercules CI uses multiple worker processes, which may connect to
the Nix daemon around the same time. It's not unthinkable that
the Nix daemon listening process isn't scheduled until after 6
workers try to connect, especially on a system under load with
many workers.

Is the increase safe?

The number is the number of connections that the kernel will buffer
while the listening process hasn't `accept`-ed them yet.
It did not - and will not - restrict the total number of daemon
forks that a client can create.

History

The number 5 has remained unchanged since the introduction in
nix-worker with 0130ef88ea in 2006.
2022-05-26 11:24:04 +02:00
..
2020-09-21 18:42:21 +02:00
2022-04-22 10:56:56 +02:00
2022-04-08 11:31:51 +02:00
2022-04-29 11:27:38 -06:00
2022-03-09 00:16:50 +01:00
2022-04-07 19:49:47 +02:00
2022-04-07 19:49:47 +02:00
2022-05-04 11:22:06 +02:00
2018-02-14 18:26:37 -05:00
2022-04-08 11:31:51 +02:00
2020-09-17 20:21:04 +02:00
2021-12-22 15:56:25 +01:00
2020-10-06 10:40:07 +02:00
2022-04-22 10:01:02 +02:00
2022-04-08 16:09:49 +02:00
2022-05-19 18:24:49 +02:00
2022-05-19 18:24:49 +02:00
2022-05-04 11:22:06 +02:00
2022-02-25 16:13:02 +01:00
2022-02-25 16:13:02 +01:00