diff options
| author | M. J. Fromberger <fromberger@tailscale.com> | 2025-10-24 14:08:47 -0700 |
|---|---|---|
| committer | Nick Khyl <nickk@tailscale.com> | 2025-10-27 10:50:13 -0500 |
| commit | 597acd86630ac51ebb6932809b121ec872b7a9c3 (patch) | |
| tree | 2828dc11249f524cd99744ae0545b327113a28a4 /control/controlhttp/controlhttpserver/controlhttpserver.go | |
| parent | e6a3669277e113d3889a6e4c1e71bc79ca5a28d0 (diff) | |
| download | tailscale-597acd86630ac51ebb6932809b121ec872b7a9c3.tar.xz tailscale-597acd86630ac51ebb6932809b121ec872b7a9c3.zip | |
logtail: avoid racing eventbus subscriptions with Shutdown (#17639)
When the eventbus is enabled, set up the subscription for change deltas at the
beginning when the client is created, rather than waiting for the first
awaitInternetUp check.
Otherwise, it is possible for a check to race with the client close in
Shutdown, which triggers a panic.
Updates #17638
Change-Id: I461c07939eca46699072b14b1814ecf28eec750c
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
(cherry picked from commit 4346615d77a6de16854c6e78f9d49375d6424e6e)
Diffstat (limited to 'control/controlhttp/controlhttpserver/controlhttpserver.go')
0 files changed, 0 insertions, 0 deletions
