mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
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. |
||
|---|---|---|
| .. | ||
| weft-app-shell | ||
| weft-appd | ||
| weft-build-meta | ||
| weft-compositor | ||
| weft-file-portal | ||
| weft-ipc-types | ||
| weft-mount-helper | ||
| weft-pack | ||
| weft-runtime | ||
| weft-servo-shell | ||