Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix leaking streams (id from preload side) #590

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open

Conversation

maidh91
Copy link
Member

@maidh91 maidh91 commented Feb 3, 2025

Issue

  • flow: preload.messages() => gui.messages() => sidecar.messages()
  • in preload,
    • sub = messages(patternFoo)
    • when calling sub.end/close, gui still subscribes patternFoo to sidecar
    • then if calling sub2 = messages(patternFoo) again
    • sub2.on(data) will receive 2 messages per event

=> sub2 should receive 1 message per event only, but because gui never unsub, so preload will receive duplicate messages

ref.

@maidh91 maidh91 changed the title fix-gui-streams fix gui streams Feb 3, 2025
@maidh91 maidh91 changed the title fix gui streams Fix leaking streams (id from preload side) Feb 3, 2025
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.

1 participant