Skip to content

Stop readsb broken-pipe log spam from the aggregator decoder probe#104

Merged
d4rken merged 1 commit into
devfrom
fix/aggregator-decoder-graceful-probe
Jun 19, 2026
Merged

Stop readsb broken-pipe log spam from the aggregator decoder probe#104
d4rken merged 1 commit into
devfrom
fix/aggregator-decoder-graceful-probe

Conversation

@d4rken

@d4rken d4rken commented Jun 19, 2026

Copy link
Copy Markdown
Member

The aggregator status panel checks whether the local readsb decoder is reachable on every dashboard poll. It did this with a bare TCP connect-and-close to readsb's BEAST output port, which left readsb's queued bytes unread — so the kernel reset the connection and readsb logged a Beast TCP output: Send Error: Broken pipe line on each poll, filling the journal whenever the web UI is open.

The probe now closes the connection gracefully (shutdown-write, then drain until readsb closes its side), which readsb sees as a clean disconnect and logs nothing. It uses nc -N where available and falls back to the previous bare connect otherwise, so reachability detection is unchanged — only the log noise is gone.

The decoder reachability probe did a bare connect+close on readsb's BEAST
output, leaving queued bytes unread so readsb logged a broken-pipe error on
every dashboard poll. Probe via nc -N (graceful shutdown+drain); fall back to
the bare connect when nc lacks -N.
@d4rken d4rken added the bug Something isn't working label Jun 19, 2026
@d4rken d4rken merged commit 8915748 into dev Jun 19, 2026
7 checks passed
@d4rken d4rken deleted the fix/aggregator-decoder-graceful-probe branch June 19, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant