Skip to content

Issue: IEC-104 Server enters repeated connect/disconnect loop after manual client reconnect #39

@innovationshkrp

Description

@innovationshkrp

When using the MZ Automation IEC 60870-5-104 multiple client, the server enters a continuous connect/disconnect loop after a client is manually disconnected and reconnected.

The IEC handshake (STARTDT act/con) completes successfully every time, but the connection is closed a few seconds later, and the client reconnects again with a new TCP port. This repeats indefinitely.

Example log pattern:

Client connected
STARTDT act
STARTDT con
Client disconnected
Client connected (new port)
STARTDT act
STARTDT con
Client disconnected
.....

Expected Behavior:

  • After a manual disconnect, the server should fully clean up the IEC session
  • On reconnect, the client should establish a stable, persistent connection
  • No repeated connect/disconnect loop should occur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions