Skip to content

fix: safely close event broker subscription channels#2254

Merged
moloch-- merged 1 commit intoBishopFox:masterfrom
smeukinou:fix-sliverpy
Apr 30, 2026
Merged

fix: safely close event broker subscription channels#2254
moloch-- merged 1 commit intoBishopFox:masterfrom
smeukinou:fix-sliverpy

Conversation

@smeukinou
Copy link
Copy Markdown
Contributor

Moves the responsibility of closing the event subscription channel to the broker.Start() goroutine when processing an unsubscribe request. This prevents potential data races and panics caused by closing a channel concurrently while the broker might still be attempting to publish events to it.

Card

Details

Moves the responsibility of closing the event subscription channel to the broker.Start() goroutine when processing an unsubscribe request. This prevents potential data races and panics caused by closing a channel concurrently while the broker might still be attempting to publish events to it.
@smeukinou smeukinou requested a review from a team as a code owner April 30, 2026 09:41
@smeukinou smeukinou requested a review from b6938236 April 30, 2026 09:41
@moloch-- moloch-- merged commit 5e37701 into BishopFox:master Apr 30, 2026
6 checks passed
@smeukinou smeukinou deleted the fix-sliverpy branch April 30, 2026 19:20
@smeukinou smeukinou restored the fix-sliverpy branch April 30, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants