mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-13 14:43:19 +00:00
net/udprelay: log socket read errors (#16573)
Socket read errors currently close the server, so we need to understand when and why they occur. Updates tailscale/corp#27502 Updates tailscale/corp#30118 Signed-off-by: Jordan Whited <jordan@tailscale.com>
This commit is contained in:
@@ -581,6 +581,7 @@ func (s *Server) packetReadLoop(readFromSocket, otherSocket *net.UDPConn) {
|
||||
// TODO: extract laddr from IP_PKTINFO for use in reply
|
||||
n, from, err := readFromSocket.ReadFromUDPAddrPort(b)
|
||||
if err != nil {
|
||||
s.logf("error reading from socket(%v): %v", readFromSocket.LocalAddr(), err)
|
||||
return
|
||||
}
|
||||
s.handlePacket(from, b[:n], readFromSocket, otherSocket)
|
||||
|
Reference in New Issue
Block a user