daemon: use kj for splicing stdio connections

drop our reimplementation of splice for non-linux in favor of using kj
pumpTo. this avoids select() for its O(maxfd) behavior, and if kj ever
uses something more efficient than read/write loops we'll benefit too.

Change-Id: Id01ba84bf8831455af2d9755bf1a3039d215bb47
This commit is contained in:
eldritch horrors
2025-07-22 10:39:32 +00:00
parent bf3d52e5bb
commit d8dfffbe37
2 changed files with 18 additions and 48 deletions
+3
View File
@@ -31,4 +31,7 @@ nix-store --dump-db > $TEST_ROOT/d1
NIX_REMOTE= nix-store --dump-db > $TEST_ROOT/d2
cmp $TEST_ROOT/d1 $TEST_ROOT/d2
# check that proxying one daemon through another works
nix --store 'ssh-ng://localhost?remote-store=ssh-ng%3a%2f%2flocalhost' store add-file ./ifd.nix
killDaemon