Skip to content

When an exception occurs, the connection to the server should be reestablished? #2569

Description

@caradilin

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

My Opcua server is currently built using LabView, and during testing, I have found that ServiceResultException type exceptions are often occasionally caught.

The following types of StatusCodes are high-frequency types: BadConnectionClosed, BadResourceUnavailable, BadSecureChannelClosed,BadSessionIdInvalid,BadNotConnected.

Should I re-establish the connection with the server in the above situation?

The following is a log that records the OpcUa client:

2024 -03-28.Opc.Ua.8888.log

Captured Error at 17:20:40.5051 Ua. ServiceResultException: BadConnectionClosed.

Captured Error at 17:33:04.4723 Ua. ServiceResultException: Error establishing a connection: BadNotConnected.

Captured Error at 17:36:00:4999 Ua. ServiceResultException: BadSecureChannelClosed.

Unfortunately, I am unable to obtain the logs recorded by the server. Please help me analyze the above issue.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Environment:
- Runtime:
- Nuget Version:
- Component:
- Server:
- Client:

Anything else?

No response

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