Skip to content

Intermittent “Bad Record MAC” after 30 min when polling and subscribing to same tag #70

@MargoPas

Description

@MargoPas

Steps to reproduce

  • Configure the driver to subscribe to tag .
  • In parallel, set up cyclic polling (e.g., every 3 s) for the same tag.

Expected behaviour
Driver runs for days without errors (confirmed when running only a subscription or only polling).

Actual behaviour
After ~30 min the log shows

Additional observations

  • Pure subscription: stable for ≥2 days.
  • Pure polling: stable for ≥2 days.

Combined polling + subscription: fails within 30 min.

Wireshark capture attached (filtered by IP/port).

Looks like a race-condition or buffer overlap when the same tag is accessed through two mechanisms.
Could it be:

Duplicate message IDs causing MAC mismatch?
Concurrent access corrupting the session key?
Driver not handling overlapping sequence numbers?

key_20250814_122751.log

Tls_error Notification + Poll.zip

Any insights or suggested work-arounds (e.g., separate sessions for poll vs. subscribe, throttling poll rate, driver patch) would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions