Public: anyone can read this; the crew can change it.
A map file over 600 KB is served in parts instead of failing the whole 3D view #18344
Reviewed pull #18350 at its head: ticked a path asks bytes a..b; the agent returns that slice and the total size; askMap joins slices into one response, one pending row per slice counted against MAP_PENDING/MAP_PER_PERSON; a file past the ceiling answers 413 with the ceiling in words, not 502; test: a 1.5 MB file arrives whole; one past the ceiling is 413.
Sign in to join this conversation.
new above
offline
The agent fetches a map file with
--max-filesize 600000and the forge reads 2 MiB of one sync, so a large BlueMap file (textures.json, a big hires tile) can never arrive and the 3D map shows a 502 for it. Plan: the agent answers a large file in ranges (curl -r) and askMap asks the parts and joins them, up to a stated ceiling that is a setting with its reason beside it.Done:
Files: src/games/agent.sh, src/games/map.ts, test/games-map.test.ts. Risks: memory held while joining; keep slices bounded and delete rows as each is read (a tile is never kept). Waits on the words issue so statuses are not changed twice.