solution_challenge_backend / HARDENING_CHANGES.md
github-actions
Deploy to Hugging Face
c794b6b
|
Raw
History Blame Contribute Delete
608 Bytes

Hardening Changes

The following targeted fixes were applied to harden the production environment without rewriting architecture:

  1. Websocket Loop Fix: Copied active_connections before iteration to prevent RuntimeError.
  2. Memory Trimming: Capped detections_history to 500 records to prevent memory growth.
  3. Timer De-duplication: Replaced overlapping setInterval/setTimeout calls in useCommandApiStatus.
  4. Unmount Cleanup: Added proper clearInterval to AlertFeed.jsx.
  5. Debug Endpoints: Added /debug/vision and /debug/backend for runtime regression detection.