Closed symphorien closed 3 years ago
This shouldn’t happen;
should always join all threads as they are done.
How did you arrive in this state? Can you reproduce it? I’d rather crash I think.
So it busy-looped because lorri was using all its assigned fds, and that made the client handler immediately fail on the accept in the listener:
Which then spins in a busy loop because it will always fail on too many fds.
This sounds like maybe the watcher is watching too many files? But anyway, of course it should not lead to lorri busy-looping.
It was when I was trying https://github.com/nix-community/lorri/pull/22#issuecomment-808914090 so it's probably my fault, but not sure.
motivation: somehow I had lorri hitting the file descriptor limit and when it does it takes 100% of a cpu.
I might be better to review all possible error and just crash on some of them, instead of retrying in a loop.
release.nix
(seerelease.nix
for instructions)