WEFT_OS/crates/weft-appd
Marco Allegretti 2cd7ee735b
fix(appd): keep a component's message whole when the relay also forwards one from the page
The session's IPC relay read component messages with read_line inside
select!, into a buffer created anew on each pass. When a message from
the page won the select while a component message was half read, the
read part was lost, and the page received the remainder as a message of
its own. The line was also unbounded.

The relay now keeps the frame being read across passes and fills it
with read_until, which keeps partial reads when cancelled. It ends the
relay on a line longer than any message the runtime sends.

A new test writes half a component message, has the relay forward a page
message, then completes it and checks that it arrives whole. On the
previous code the test receives only the second half. It also checks
that an overlong line ends the relay.
2026-10-09 19:39:01 +00:00
..
src fix(appd): keep a component's message whole when the relay also forwards one from the page 2026-10-09 19:39:01 +00:00
Cargo.toml fix(appd): stabilize tests and unix-gate sd-notify 2026-03-13 12:52:39 +01:00