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

Libwebsockets (usage) improvements #870

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Conversation

marcemmers
Copy link
Contributor

Describe your changes

We encountered deadlocks in the libwebsockters layer when we were often restarting the connectivity manager.
The issue is due to 2 threads calling join() at the same time.

I've added the proper joinable() checks and also removed the destruction and construction of libwebsockets every new config. This is no longer needed now we have one implementation that handles both secure and unsecure websockets.

Issue ticket number and link

Checklist before requesting a review

@marcemmers marcemmers requested a review from Pietfried November 19, 2024 10:53
@marcemmers marcemmers force-pushed the me-libwebsockets-improvements branch from ee58c76 to 4f153e6 Compare November 19, 2024 10:55
@marcemmers marcemmers merged commit 15e653d into main Nov 20, 2024
8 checks passed
@marcemmers marcemmers deleted the me-libwebsockets-improvements branch November 20, 2024 13:42
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