mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
derp: do not treat failure to relay as the fault of the sender
If Alice attempts to send a packet to Bob and the DERP server encounters an error on the socket to Bob, we should not disconnect Alice for that. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
43aa8595dd
commit
3df1b97ea8
@ -320,7 +320,9 @@ func (c *sclient) handleFrameSendPacket(ctx context.Context, ft frameType, fl ui
|
|||||||
}
|
}
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
}
|
}
|
||||||
return err
|
|
||||||
|
// Do not treat a send error as an error with this transmitting client.
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) sendClientKeepAlives(ctx context.Context, c *sclient) {
|
func (s *Server) sendClientKeepAlives(ctx context.Context, c *sclient) {
|
||||||
|
Loading…
Reference in New Issue
Block a user