diff --git a/server/src/flights/adsb.ts b/server/src/flights/adsb.ts index 161e6d5..ffa9287 100644 --- a/server/src/flights/adsb.ts +++ b/server/src/flights/adsb.ts @@ -83,7 +83,7 @@ export async function fetchAdsb( ); return null; } - const body = await getJson(url); + const body = await getJson(url, { timeoutMs: ADSB_TIMEOUT_MS }); if (body === null) return null; return normalise(body, (dropped) => log?.warn(`flights:adsb: feed sent ${dropped + MAX_ROWS} aircraft; kept the first ${MAX_ROWS}`), @@ -126,6 +126,30 @@ export async function readDump1090(path: string, log?: AdsbLog): Promise