Files
routewatch/internal/streamer
sneak 7925f4dd34
check / check (push) Waiting to run
Read the drop counter atomically and set the WHOIS fetcher before serving (closes #115)
The read loop added to a handler's drop count atomically while the
statistics endpoint and the metrics log read it as a plain field, a data
race whenever messages were dropped. The count is now an atomic.Uint64,
read with Load. A test reads the handler statistics while the read loop
drops messages for a handler that never finishes one.

Run created the WHOIS fetcher and gave it to the HTTP server after the
server had started, while request handlers could read it. The fetcher is
now set before the server starts.

Model: opus-5-5
2026-10-20 01:09:54 +00:00
..