tailscale/ipn
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
..
auditlog all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
conffile all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
desktop all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipnauth all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipnext all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipnlocal ipn/ipnlocal/netmapcache: add a package to split and cache network maps (#18497) 2026-01-26 14:55:30 -08:00
ipnserver all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipnstate all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
lapitest all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
localapi ipn/localapi: stop logging "broken pipe" errors (#18487) 2026-01-26 16:41:03 -08:00
policy all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
store all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
backend_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
backend.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
conf.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
doc.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipn_clone.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipn_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
ipn_view.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
prefs_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
prefs.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
serve_expand_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
serve_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
serve.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
store_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
store.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00