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

Fix websocket logs causing device to crash #277 #318

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

eandersson
Copy link
Collaborator

@eandersson eandersson commented Sep 4, 2024

This is an attempt to fix the issues with the websocket implementation by introducing a thread safe queue to store and read log messages.

There is an additional heap cost with this implementation as we are now queueing log messages, but it should be manageable. For reference I have been running this patch for a few days now and heap is stable, but if there are concerns we could tune MESSAGE_QUEUE_SIZE.

Finally, with this patch I am no longer able to reproduce the bug reported here #277

@eandersson eandersson changed the title [#277] Attempt to fix websocket crash Fix websocket log crash [#277] Sep 4, 2024
@eandersson eandersson changed the title Fix websocket log crash [#277] Fix websocket log crash #277 Sep 4, 2024
@eandersson eandersson changed the title Fix websocket log crash #277 Fix websocket log causing device to crash #277 Sep 5, 2024
@eandersson eandersson changed the title Fix websocket log causing device to crash #277 Fix websocket logs causing device to crash #277 Sep 5, 2024
@WantClue
Copy link
Collaborator

WantClue commented Sep 6, 2024

@skot This also fixes the ramp up stuck behavior. I approve this Merge and approve a bug bounty to this as well.

@WantClue WantClue self-assigned this Sep 6, 2024
@WantClue WantClue added bug Something isn't working accepted This issue will be worked on labels Sep 6, 2024
@WantClue WantClue merged commit d925d61 into skot:master Sep 6, 2024
1 check passed
@eandersson eandersson deleted the websocket_fix branch October 9, 2024 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue will be worked on bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants