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/util/eventbus
Nick Khyl 016ccae2da util/eventbus: add tests for a subscriber trying to acquire the same mutex as a publisher
As of 2025-11-20, publishing more events than the eventbus's
internal queues can hold may deadlock if a subscriber tries
to acquire a mutex that can also be held by a publisher.

This commit adds a test that demonstrates this deadlock,
and skips it until the bug is fixed.

Updates #17973

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2 months ago
..
assets util/eventbus: add a debug HTTP handler for the bus 10 months ago
debug-demo cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 4 months ago
eventbustest util/eventbus/eventbustest: add support for synctest instead of timers (#17522) 3 months ago
bench_test.go util/eventbus: add basic throughput benchmarks (#15284) 10 months ago
bus.go util/eventbus: simplify some reflect in Bus.pump 2 months ago
bus_test.go util/eventbus: add tests for a subscriber trying to acquire the same mutex as a publisher 2 months ago
client.go syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
debug.go syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago
debughttp.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 4 months ago
debughttp_off.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 4 months ago
doc.go util/eventbus: add test helpers to simplify testing events (#16294) 7 months ago
fetch-htmx.go util/eventbus: add a debug HTTP handler for the bus 10 months ago
monitor.go util/eventbus: add a Done method to the Monitor type (#17263) 4 months ago
publish.go util/eventbus: flesh out docs a bit 4 months ago
queue.go util/eventbus: make internal queue a generic type 11 months ago
subscribe.go syncs: add Mutex/RWMutex alias/wrappers for future mutex debugging 2 months ago