Skip to content

Fix race conditions, resource leaks, and performance issues#56

Open
g4dpz wants to merge 1 commit into
CircuitMess:masterfrom
g4dpz:code-quality-fixes
Open

Fix race conditions, resource leaks, and performance issues#56
g4dpz wants to merge 1 commit into
CircuitMess:masterfrom
g4dpz:code-quality-fixes

Conversation

@g4dpz

@g4dpz g4dpz commented Jul 3, 2026

Copy link
Copy Markdown
  • Feed: freeImgs[] changed to std::atomic (data race fix)
  • UDPListener: close socket fd on bind failure (fd leak fix)
  • Events: keep mutex locked during post iteration (use-after-free fix)
  • Events: inline 8-byte storage for small payloads (heap fragmentation fix)
  • Feed: select() with 100ms timeout instead of busy-poll
  • TCPClient: select() on EAGAIN instead of vTaskDelay busy-loop
  • DriveScreen: cache direction state, only setPath() on change
  • Feed: removed misleading volatile qualifiers
  • DriveScreen: removed duplicate Events::listen() call

- Feed: freeImgs[] changed to std::atomic<bool> (data race fix)
- UDPListener: close socket fd on bind failure (fd leak fix)
- Events: keep mutex locked during post iteration (use-after-free fix)
- Events: inline 8-byte storage for small payloads (heap fragmentation fix)
- Feed: select() with 100ms timeout instead of busy-poll
- TCPClient: select() on EAGAIN instead of vTaskDelay busy-loop
- DriveScreen: cache direction state, only setPath() on change
- Feed: removed misleading volatile qualifiers
- DriveScreen: removed duplicate Events::listen() call
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