-
Notifications
You must be signed in to change notification settings - Fork 245
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(pubsub): handle subscription response on reconnects (#105) #107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain the reasoning behind this fix? i.e. why do we believe it addresses the issue?
It looks like the main difference is the Inflight added here
@prestwich Indeed. It seems that on reconnects, if there are no in-flight request, new subscription responses are not handled, see below: alloy/crates/pubsub/src/service.rs Line 167 in 4db40b0
|
I am reluctant to merge this while it contains a memory leak (even if it's not a very serious one for most people). can you test with the current code and dropping server ids? |
@prestwich Yes I just did, see my comment above |
ah simultaneous comments. seems the check in upsert |
That make sense, I will test. |
My tests are conclusive, changing |
amazing, thanks for working in this. I will give it final review when i get to a laptop (hopefully today) summary:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Motivation
Closes #105
Solution
PR Checklist