You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix concurrency security issues in SubscriptionManager and ListenerManager (#186)
fix: Make `SubscriptionManager.Destroy` safe to call concurrently and more than once by guarding teardown with `sync.Once`, flipping `channelsOpen` under the write lock, and closing each exit channel exactly once, eliminating the data race and `close of closed channel` panic.
fix: Bound each `ListenerManager.announce*` send with a 60s per-listener deadline so a stalled or absent consumer no longer parks the announce goroutine (and the event it holds) indefinitely, fixing an unbounded goroutine leak; `copyListeners` now takes an `RLock` since it only reads.
Copy file name to clipboardExpand all lines: .pubnub.yml
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,13 @@
1
1
---
2
-
version: v9.0.3
2
+
version: v9.0.4
3
3
changelog:
4
+
- date: 2026-07-13
5
+
version: v9.0.4
6
+
changes:
7
+
- type: bug
8
+
text: "Make `SubscriptionManager.Destroy` safe to call concurrently and more than once by guarding teardown with `sync.Once`, flipping `channelsOpen` under the write lock, and closing each exit channel exactly once, eliminating the data race and `close of closed channel` panic."
9
+
- type: bug
10
+
text: "Bound each `ListenerManager.announce*` send with a 60s per-listener deadline so a stalled or absent consumer no longer parks the announce goroutine (and the event it holds) indefinitely, fixing an unbounded goroutine leak; `copyListeners` now takes an `RLock` since it only reads."
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
## v9.0.4
2
+
July 13 2026
3
+
4
+
#### Fixed
5
+
- Make `SubscriptionManager.Destroy` safe to call concurrently and more than once by guarding teardown with `sync.Once`, flipping `channelsOpen` under the write lock, and closing each exit channel exactly once, eliminating the data race and `close of closed channel` panic.
6
+
- Bound each `ListenerManager.announce*` send with a 60s per-listener deadline so a stalled or absent consumer no longer parks the announce goroutine (and the event it holds) indefinitely, fixing an unbounded goroutine leak; `copyListeners` now takes an `RLock` since it only reads.
0 commit comments