trails/apps
Ullrich Schäfer d70d6ee8a8
fix(planner/brouter): add 30s timeout to outbound fetch
Mirrors journal PR #5. `fetchSegment()` and `computeSegmentGpx()` in
lib/brouter.ts called `fetch()` with no AbortSignal — a hung or slow
BRouter would stall the request handler indefinitely.

New `lib/http.server.ts::fetchWithTimeout()` (same as the journal's
helper) wraps fetch with `AbortSignal.timeout(30_000)`, composable
with a caller-supplied signal via `AbortSignal.any()`.

Tests: lib/http.server.test.ts (2 cases — timeout abort, happy path).
2026-05-25 23:53:19 +02:00
..
journal ci: wire integration tests into the CI E2E job 2026-05-25 23:27:44 +02:00
mobile Add Jest mock for expo-crypto 2026-05-24 11:54:50 +02:00
planner fix(planner/brouter): add 30s timeout to outbound fetch 2026-05-25 23:53:19 +02:00