Skip to content

refactor: resolve top 5 critical technical debts#5

Merged
vkaylee merged 6 commits into
masterfrom
feature/resolve-tech-debt
Jun 22, 2026
Merged

refactor: resolve top 5 critical technical debts#5
vkaylee merged 6 commits into
masterfrom
feature/resolve-tech-debt

Conversation

@vkaylee

@vkaylee vkaylee commented Jun 22, 2026

Copy link
Copy Markdown
Owner

refactor: resolve top 5 critical technical debts

  • attendance.rs: Enforce strict record size validation (8, 16, 40)
  • transport.rs: Close & clear TCP socket on errors/timeouts to prevent desync
  • models.rs & device.rs: Handle ambiguous/fold Chrono LocalResult for DST transitions
  • lib.rs & transport.rs: Send non-blocking CMD_EXIT on Drop to prevent session leaks
  • protocol.rs: Auto-skip checksum bytes (2-3) on raw packets for calculate_checksum
  • tests: Added comprehensive integration/unit tests to verify all safety fixes

Lee added 6 commits June 22, 2026 00:12
…ut, non-blocking Drop, TCP desync recovery, structured error helpers, and zero-alloc ACK payload
…hecksum validation, OOM protection, DRY user models, heap optimization)
- attendance.rs: Enforce strict record size validation (8, 16, 40)
- transport.rs: Close & clear TCP socket on errors/timeouts to prevent desync
- models.rs & device.rs: Handle ambiguous/fold Chrono LocalResult for DST transitions
- lib.rs & transport.rs: Send non-blocking CMD_EXIT on Drop to prevent session leaks
- protocol.rs: Auto-skip checksum bytes (2-3) on raw packets for calculate_checksum
- tests: Added comprehensive integration/unit tests to verify all safety fixes
@vkaylee vkaylee merged commit e5be33e into master Jun 22, 2026
1 check 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.

1 participant