go-pulse/event
Inphi ffc6a0f36e
event: fix Resubscribe deadlock when unsubscribing after inner sub ends (#28359)
A goroutine is used to manage the lifetime of subscriptions managed by
resubscriptions. When the subscription ends with no error, the resub
goroutine ends as well. However, the resub goroutine needs to live
long enough to read from the unsub channel. Otheriwse, an Unsubscribe
call deadlocks when writing to the unsub channel.

This is fixed by adding a buffer to the unsub channel.
2023-10-22 17:37:56 +02:00
..
event_test.go
event.go
example_feed_test.go
example_scope_test.go
example_subscription_test.go
example_test.go
feed_test.go
feed.go
feedof_test.go
feedof.go
multisub_test.go
multisub.go
subscription_test.go event: fix Resubscribe deadlock when unsubscribing after inner sub ends (#28359) 2023-10-22 17:37:56 +02:00
subscription.go event: fix Resubscribe deadlock when unsubscribing after inner sub ends (#28359) 2023-10-22 17:37:56 +02:00