aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/attr-set.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-11-27 12:57:18 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-11-27 12:57:18 +0100
commit5b798f6caeab64854394e1250e30aab91241cf26 (patch)
tree836df800b9abeb9e6e1d7d659bab1d902767805d /src/libexpr/attr-set.cc
parent534332c8a03b64161ec795d1deb2ba3d48f27be1 (diff)
Fix random client failures during GC server shutdown
We need to close the GC server socket before shutting down the active GC client connections, otherwise a client may (re)connect and get ECONNRESET. But also handle ECONNRESET for resilience. Fixes random failures like GC socket disconnected connecting to '/tmp/nix-shell.y07M0H/nix-test/default/var/nix/gc-socket/socket' sending GC root '/tmp/nix-shell.y07M0H/nix-test/default/store/kb5yzija0f1x5xkqkgclrdzldxj6nnc6-non-blocking' reading GC root from client: error: unexpected EOF reading a line 1 store paths deleted, 0.00 MiB freed error: reading from file: Connection reset by peer in gc-non-blocking.sh.
Diffstat (limited to 'src/libexpr/attr-set.cc')
0 files changed, 0 insertions, 0 deletions