diff options
| author | tv <tv@krebsco.de> | 2026-11-20 02:09:41 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 03:17:48 +0100 |
| commit | df5727174c92d74f625806e747557dbf4991d999 (patch) | |
| tree | 98881150e69425fa05deee71001db14af462bc7b /docs/lifecycle.md | |
| parent | 43259e8bc812db6d8f6e767a22d48d0b28f5dccf (diff) | |
mycelium: tests against a daemon that holds its lock while a poll waits
A Mycelium daemon's API as it behaves for the transport, served by axum
as Mycelium's is: its node behind one lock, which a request for the
inbox holds for as long as it waits for a message, and which every other
request waits for, as Mycelium 0.7's long poll does. Messages come into
the inbox beside that lock, as from the network.
Against it, the transport as it is: an idle node's sends wait behind its
own polls of the inbox, which wait for five minutes, so
`a_node_with_nothing_coming_in_sends_at_once` and
`messages_coming_while_the_node_sends_all_come_in` fail here (each send
times out); messages are taken as they come, and an idle node asks its
daemon nothing again and again, which the other two tests keep so.
Diffstat (limited to 'docs/lifecycle.md')
0 files changed, 0 insertions, 0 deletions
