WEFT_OS/crates/weft-file-portal
Marco Allegretti ff1388c6d9
test(portal): make the link-swap race test exercise both states, and fix limits
The race test could finish before its swapping thread first ran, so in
some runs nothing was exercised and the test failed. The link now
exists from the start. The test runs until it has seen both reads that
stay inside and reads refused for leading out, and it also swaps in a
relative link that climbs out.

Other fixes:
- A request line ending in CRLF is measured without the CRLF.
- Responses that the client stops reading time out like requests do.
- Temporary file names include the portal's start time, so a file left
  by an earlier instance cannot collide with a new one.

The test binary passed 30 runs in a row.
2026-10-09 18:59:01 +00:00
..
src test(portal): make the link-swap race test exercise both states, and fix limits 2026-10-09 18:59:01 +00:00
Cargo.toml fix(portal): confine file operations beneath the granted directory 2026-10-09 18:06:25 +00:00