mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-28 05:58:20 +00:00
control/controlclient: optimize zstd decode of KeepAlive messages
Maybe it matters? At least globally across all nodes? Fixes #17343 Change-Id: I3f61758ea37de527e16602ec1a6e453d913b3195 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
3ae7a351b4
commit
2cd518a8b6
@@ -57,6 +57,9 @@ type mapSession struct {
|
||||
altClock tstime.Clock // if nil, regular time is used
|
||||
cancel context.CancelFunc // always non-nil, shuts down caller's base long poll context
|
||||
|
||||
keepAliveZ []byte // if non-nil, the learned zstd encoding of the just-KeepAlive message for this session
|
||||
ztdDecodesForTest int // for testing
|
||||
|
||||
// sessionAliveCtx is a Background-based context that's alive for the
|
||||
// duration of the mapSession that we own the lifetime of. It's closed by
|
||||
// sessionAliveCtxClose.
|
||||
|
||||
Reference in New Issue
Block a user