You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 days ago
..
ace all: remove AUTHORS file and references to it 1 week ago
art all: remove AUTHORS file and references to it 1 week ago
bakedroots all: remove AUTHORS file and references to it 1 week ago
batching all: remove AUTHORS file and references to it 1 week ago
captivedetection all: remove AUTHORS file and references to it 1 week ago
connectproxy all: remove AUTHORS file and references to it 1 week ago
dns net/dns: add test for DoH upgrade of system DNS 4 days ago
dnscache all: remove AUTHORS file and references to it 1 week ago
dnsfallback all: remove AUTHORS file and references to it 1 week ago
flowtrack all: remove AUTHORS file and references to it 1 week ago
ipset all: remove AUTHORS file and references to it 1 week ago
ktimeout all: remove AUTHORS file and references to it 1 week ago
memnet all: remove AUTHORS file and references to it 1 week ago
netaddr all: remove AUTHORS file and references to it 1 week ago
netcheck all: remove AUTHORS file and references to it 1 week ago
neterror ipn/localapi: stop logging "broken pipe" errors (#18487) 4 days ago
netkernelconf all: remove AUTHORS file and references to it 1 week ago
netknob all: remove AUTHORS file and references to it 1 week ago
netmon all: remove AUTHORS file and references to it 1 week ago
netns all: remove AUTHORS file and references to it 1 week ago
netstat all: remove AUTHORS file and references to it 1 week ago
netutil all: remove AUTHORS file and references to it 1 week ago
netx all: remove AUTHORS file and references to it 1 week ago
packet all: remove AUTHORS file and references to it 1 week ago
ping all: remove AUTHORS file and references to it 1 week ago
portmapper all: remove AUTHORS file and references to it 1 week ago
proxymux all: remove AUTHORS file and references to it 1 week ago
routetable all: remove AUTHORS file and references to it 1 week ago
sockopts all: remove AUTHORS file and references to it 1 week ago
socks5 all: remove AUTHORS file and references to it 1 week ago
sockstats all: remove AUTHORS file and references to it 1 week ago
speedtest all: remove AUTHORS file and references to it 1 week ago
stun all: remove AUTHORS file and references to it 1 week ago
stunserver all: remove AUTHORS file and references to it 1 week ago
tcpinfo all: remove AUTHORS file and references to it 1 week ago
tlsdial all: remove AUTHORS file and references to it 1 week ago
tsaddr all: remove AUTHORS file and references to it 1 week ago
tsdial all: remove AUTHORS file and references to it 1 week ago
tshttpproxy all: remove AUTHORS file and references to it 1 week ago
tstun all: remove AUTHORS file and references to it 1 week ago
udprelay all: remove AUTHORS file and references to it 1 week ago
wsconn all: remove AUTHORS file and references to it 1 week ago