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

Mitigate memory "leak" warnings when significant numbers of HSV events are happening simultaneously. #1029

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

hjdhjd
Copy link
Contributor

@hjdhjd hjdhjd commented Apr 27, 2024

This small PR addresses the warnings that can occur when the following scenario occurs:

  • Multiple HSV-configured cameras have been configured and are in use.
  • Multiple HSV events are occurring simultaneously.

When can easily hit the event emitter thresholds for individual HAP controller connections. This PR increments and decrements the max listener high water mark to scale appropriately regardless of the number of cameras and simultaneous events.

@hjdhjd hjdhjd requested a review from Supereg April 27, 2024 22:38
@hjdhjd hjdhjd enabled auto-merge (squash) April 27, 2024 22:38
@donavanbecker donavanbecker merged commit 19f80ab into latest Apr 28, 2024
10 checks passed
@donavanbecker donavanbecker deleted the hjd-hsv-memory-warnings branch April 28, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants