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>
2 days ago
..
ace all: remove AUTHORS file and references to it 5 days ago
art all: remove AUTHORS file and references to it 5 days ago
bakedroots all: remove AUTHORS file and references to it 5 days ago
batching all: remove AUTHORS file and references to it 5 days ago
captivedetection all: remove AUTHORS file and references to it 5 days ago
connectproxy all: remove AUTHORS file and references to it 5 days ago
dns net/dns: add test for DoH upgrade of system DNS 2 days ago
dnscache all: remove AUTHORS file and references to it 5 days ago
dnsfallback all: remove AUTHORS file and references to it 5 days ago
flowtrack all: remove AUTHORS file and references to it 5 days ago
ipset all: remove AUTHORS file and references to it 5 days ago
ktimeout all: remove AUTHORS file and references to it 5 days ago
memnet all: remove AUTHORS file and references to it 5 days ago
netaddr all: remove AUTHORS file and references to it 5 days ago
netcheck all: remove AUTHORS file and references to it 5 days ago
neterror ipn/localapi: stop logging "broken pipe" errors (#18487) 2 days ago
netkernelconf all: remove AUTHORS file and references to it 5 days ago
netknob all: remove AUTHORS file and references to it 5 days ago
netmon all: remove AUTHORS file and references to it 5 days ago
netns all: remove AUTHORS file and references to it 5 days ago
netstat all: remove AUTHORS file and references to it 5 days ago
netutil all: remove AUTHORS file and references to it 5 days ago
netx all: remove AUTHORS file and references to it 5 days ago
packet all: remove AUTHORS file and references to it 5 days ago
ping all: remove AUTHORS file and references to it 5 days ago
portmapper all: remove AUTHORS file and references to it 5 days ago
proxymux all: remove AUTHORS file and references to it 5 days ago
routetable all: remove AUTHORS file and references to it 5 days ago
sockopts all: remove AUTHORS file and references to it 5 days ago
socks5 all: remove AUTHORS file and references to it 5 days ago
sockstats all: remove AUTHORS file and references to it 5 days ago
speedtest all: remove AUTHORS file and references to it 5 days ago
stun all: remove AUTHORS file and references to it 5 days ago
stunserver all: remove AUTHORS file and references to it 5 days ago
tcpinfo all: remove AUTHORS file and references to it 5 days ago
tlsdial all: remove AUTHORS file and references to it 5 days ago
tsaddr all: remove AUTHORS file and references to it 5 days ago
tsdial all: remove AUTHORS file and references to it 5 days ago
tshttpproxy all: remove AUTHORS file and references to it 5 days ago
tstun all: remove AUTHORS file and references to it 5 days ago
udprelay all: remove AUTHORS file and references to it 5 days ago
wsconn all: remove AUTHORS file and references to it 5 days ago