Skip to content

Windows RDS crashes when many devices connect - #454

Merged
lo-simon merged 8 commits into
sony:masterfrom
lo-simon:fix_heavy_registration
Oct 21, 2025
Merged

Windows RDS crashes when many devices connect#454
lo-simon merged 8 commits into
sony:masterfrom
lo-simon:fix_heavy_registration

Conversation

@lo-simon

@lo-simon lo-simon commented Jul 18, 2025

Copy link
Copy Markdown
Collaborator

In Windows, there is a maximum number of exclusive locks that can be held. Once it reaches the maximum value, the lock will throw a lock exception. Although the registration API can handle the exception, many of the nmos-cpp threads, such as send_events_ws_messages_thread and erase_expired_events_resources_thread, do not handle the lock exception when the reserve_lock_guard is out of scope, which would cause RDS to crash. To resolve this issue, it is essential to ensure that the exception is handled correctly.

@lo-simon lo-simon changed the title Windows RDS becomes unresponsive when many devices connect Windows RDS crashes when many devices connect Jul 19, 2025
@lo-simon
lo-simon marked this pull request as draft July 19, 2025 21:58
Comment thread Development/nmos/events_ws_api.cpp Outdated
Comment thread Development/nmos/registration_api.cpp Outdated
lo-simon and others added 4 commits July 29, 2025 11:07
Co-authored-by: jonathan-r-thorpe <64410119+jonathan-r-thorpe@users.noreply.github.com>
Co-authored-by: jonathan-r-thorpe <64410119+jonathan-r-thorpe@users.noreply.github.com>
@lo-simon
lo-simon marked this pull request as ready for review September 30, 2025 09:59

@jonathan-r-thorpe jonathan-r-thorpe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lo-simon
lo-simon merged commit 0718fa4 into sony:master Oct 21, 2025
20 checks passed
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