From 55f36a960a90aedcb6e899ea963cc642fd630a82 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 18 Nov 2026 11:17:17 +0000 Subject: continuum-party: why waiting for the ssh-agent may block The client signs one event at a time and does nothing else meanwhile, and an agent may wait for its user as long as that takes. --- src/federation/party.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/federation') diff --git a/src/federation/party.rs b/src/federation/party.rs index 5d18eb8..9d9c268 100644 --- a/src/federation/party.rs +++ b/src/federation/party.rs @@ -429,6 +429,10 @@ impl Signer { Ok(event::signed(key, &self.party, &line, deps, does)) } Signing::Agent(key, socket) => { + // The agent's answer is waited for blocking the thread, in async code: the + // client signs one event at a time and does nothing else meanwhile, and an + // agent may wait for its user (a touch, a confirmation) as long as that + // takes, which nothing here should cut short. event::signed_by(&self.party, &key.line(), deps, does, |bytes| { keys::sign_through(socket, key, bytes) }) -- cgit v1.3.1