Skip to content

fix(ws): prevent goroutine leaks in hub Unregister and RedisBridge close #219

Description

Summary

hub.go:104,129 spawn go h.Unregister per full buffer and RedisBridge.Close() (redis_bridge.go:29-31) closes stop but the subscribe goroutine may block forever.

Acceptance Criteria

  • Deterministic unregister without per-buffer goroutines
  • RedisBridge consume goroutine reliably exits on Close
  • Leak tests (goroutine count)

Complexity

High.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programconcurrencyConcurrency, race conditions, correctnesshigh-complexityHigh-complexity backend task requiring deep architectural work

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions