rpc builds take a long time to cancel #1285

Closed
opened 2026-09-01 15:37:37 +00:00 by pennae · 1 comment
Owner

Describe the bug

this finishes in five seconds

time timeout 5s nix build --store 'daemon?protocol=legacy' $(nix-instantiate --expr 'with import <nixpkgs> {}; runCommand "foo" {} "echo started; sleep inf"')'^*'

this does not

time timeout 5s nix build --store 'daemon?protocol=lix-xp-1' $(nix-instantiate --expr 'with import <nixpkgs> {}; runCommand "foo" {} "echo started; sleep inf"')'^*'

depending on the derivation it may not finish at all, or take a very long time

Expected behavior

they should be the same

## Describe the bug this finishes in five seconds ``` time timeout 5s nix build --store 'daemon?protocol=legacy' $(nix-instantiate --expr 'with import <nixpkgs> {}; runCommand "foo" {} "echo started; sleep inf"')'^*' ``` this does not ``` time timeout 5s nix build --store 'daemon?protocol=lix-xp-1' $(nix-instantiate --expr 'with import <nixpkgs> {}; runCommand "foo" {} "echo started; sleep inf"')'^*' ``` depending on the derivation it may not finish at all, or take a very long time ## Expected behavior they should be the same
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/6429 ("libutil: make all rpc calls interruptible")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/6429", "number": 6429, "kind": "commit message"}], "cl_meta": {"6429": {"change_title": "libutil: make all rpc calls interruptible"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/6429](https://gerrit.lix.systems/c/lix/+/6429) ("libutil: make all rpc calls interruptible")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lix-project/lix#1285
No description provided.