Skip to content

in certain condition, payload is over 4002 byte and go into reconnection loop #558

@byunghyunna2

Description

@byunghyunna2

I had some issue that after hours run, lost communication to PLC and not being able to recover back.
I ran wireshark and debug option 2, noticed libplctag sent 4003 byte of payload then no response from PLC when into reconnection.
it seems payload count was wrong and overwrite a byte to hostIP address, so it went into reconnection loop due to incorrect ip address.

remaining_space = max_payload_size - (int)sizeof(cip_multi_req_header);

maybe it should account for size of sequence count?

I'm using 2.6.6 on windows 11 and CompactLogix 5069-L306ER

Image

stderr.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions