tailscale/net
Amal Bansode 6de5b01e04
ipn/localapi: stop logging "broken pipe" errors (#18487)
The Tailscale CLI has some methods to watch the IPN bus for
messages, say, the current netmap (`tailscale debug netmap`).
The Tailscale daemon supports this using a streaming HTTP
response. Sometimes, the client can close its connection
abruptly -- due to an interruption, or in the case of `debug netmap`,
intentionally after consuming one message.

If the server daemon is writing a response as the client closes
its end of the socket, the daemon typically encounters a "broken pipe"
error. The "Watch IPN Bus" handler currently logs such errors after
they're propagated by a JSON encoding/writer helper.

Since the Tailscale CLI nominally closes its socket with the daemon
in this slightly ungraceful way (viz. `debug netmap`), stop logging
these broken pipe errors as far as possible. This will help avoid
confounding users when they scan backend logs.

Updates #18477

Signed-off-by: Amal Bansode <amal@tailscale.com>
2026-01-26 16:41:03 -08:00
..
ace all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
art all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
bakedroots all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
batching all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
captivedetection all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
connectproxy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
dns net/dns: add test for DoH upgrade of system DNS 2026-01-26 14:14:39 -05:00
dnscache all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
dnsfallback all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
flowtrack all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipset all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ktimeout all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
memnet all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netaddr all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netcheck all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
neterror ipn/localapi: stop logging "broken pipe" errors (#18487) 2026-01-26 16:41:03 -08:00
netkernelconf all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netknob all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netmon all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netns all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netstat all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netutil all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
netx all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
packet all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ping all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
portmapper all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
proxymux all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
routetable all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
sockopts all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
socks5 all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
sockstats all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
speedtest all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
stun all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
stunserver all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tcpinfo all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tlsdial all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tsaddr all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tsdial all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tshttpproxy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
tstun all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
udprelay all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
wsconn all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00