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

core: send UP from initial subscriptions #1172

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

core: send UP from initial subscriptions #1172

wants to merge 15 commits into from

Conversation

dpwiz
Copy link
Contributor

@dpwiz dpwiz commented May 25, 2024

No description provided.

@dpwiz dpwiz marked this pull request as ready for review May 30, 2024 15:30
else do
logWarn "subcription batch result for replaced SMP client, resubscribing"
resubscribe $> L.map (second $ \_ -> Left PCENetworkError) rs
where
tSess = transportSession' smp
notifyUP up = maybe (logError "sndQ full" >> notifyUP up) pure =<< timeout 30000000 (notifySub c "" $ UP srv up)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is going on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subQ may become full, blocking everyone up to subscribe command. Happened in the batch test with 200 subs and no reader.
I've added queue queue flushing here, but may be some indication of queue stalling may be helpful to everyone.

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