Skip to content

refactor(dispatcher): improve packet processing with payload-based deduplication and raw hash blacklisting#49

Merged
rightup merged 1 commit intopyMC-dev:feat/companionfrom
agessaman:feat/companion
Mar 24, 2026
Merged

refactor(dispatcher): improve packet processing with payload-based deduplication and raw hash blacklisting#49
rightup merged 1 commit intopyMC-dev:feat/companionfrom
agessaman:feat/companion

Conversation

@agessaman
Copy link
Copy Markdown
Contributor

  • Updated the Dispatcher class to use a raw-frame hash for blacklisting known malformed packets before parsing, enhancing error handling.
  • Changed deduplication logic to utilize the standard payload-based hash, ensuring compatibility with firmware and improving packet processing accuracy.
  • Added tests to verify that packets with the same payload but different paths are deduplicated correctly, while different payloads are processed independently.
  • Ensured malformed packets are blacklisted by their raw hash to prevent repeated parsing attempts.

…duplication and raw hash blacklisting

- Updated the Dispatcher class to use a raw-frame hash for blacklisting known malformed packets before parsing, enhancing error handling.
- Changed deduplication logic to utilize a payload-based hash, ensuring compatibility with firmware and improving packet processing accuracy.
- Added tests to verify that packets with the same payload but different paths are deduplicated correctly, while different payloads are processed independently.
- Ensured malformed packets are blacklisted by their raw hash to prevent repeated parsing attempts.
@rightup rightup merged commit 14c35fc into pyMC-dev:feat/companion Mar 24, 2026
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