Skip to content

Fix hang#21

Open
roeierez wants to merge 2 commits intomainfrom
fix-hang
Open

Fix hang#21
roeierez wants to merge 2 commits intomainfrom
fix-hang

Conversation

@roeierez
Copy link
Member

This PR fixes a hang that occurs after several hours of running.
The origin of this is the initial notification on subscribing. Since it was executed within the event loop then it hanged on cases where there was non listener for the channel.
This cases were rare but they happened when the client attempted to subscribe and then immediately unsubscribe before the first notification was sent.
I moved the notification into the streaming loop.
Also added a mutex lock for incrementing global ids.

@roeierez roeierez requested a review from hydra-yse March 12, 2025 10:23
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