Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Behaviour when the server ends the connection via TCP RST #2544

Closed
2 of 5 tasks
KircMax opened this issue Mar 1, 2024 · 2 comments · May be fixed by #2577
Closed
2 of 5 tasks

Behaviour when the server ends the connection via TCP RST #2544

KircMax opened this issue Mar 1, 2024 · 2 comments · May be fixed by #2577

Comments

@KircMax
Copy link
Contributor

KircMax commented Mar 1, 2024

Type of issue

  • Bug
  • Enhancement
  • Compliance
  • Question
  • Help wanted

Current Behavior

When the server sends a TCP Reset to close the connection after the client tries to send a KeepAlive:
image
there seems to be some sort of ReconnectHandling in Place since a new SecureChannel is created.
BUT since the client does not activate the session on that channel every later ReadRequest will be responded to with BadSecureChannelIdInvalid (0x8022_0000)... I can also see the KeepAlive ReadRequests being responded to with BadSecureChannelIdInvalid ...
As soon as I try to e.g. Read a variable later in the Client I will then get the BadSecureChannelIdInvalid Exception...

I could think of this not being a bug since the client was not explicitly triggered to do the KeepAlive and therefore it shouldn't throw an Exception there and then the BadSecureChannelIdInvalid seems kind of okay since that is what the server returns...

But understanding the problem from what happened without wireshark is really not that easy...

Expected Behavior

No response

Steps To Reproduce

No response

Environment

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

Anything else?

No response

@KircMax
Copy link
Contributor Author

KircMax commented Mar 1, 2024

The logs show the Channel Socket closed and show that the SecureChannel has been closed and that afterwards the BeginSendRequst, Endpoints, Connecting -> HelloMessage, Opening and then OpenSecureChannel -->
image

2024_03_01_-16_45_51-_OpcUA_SDK.log

@KircMax KircMax changed the title Autoconnect/ auto reconnect behaviour when the server ends the connection Behaviour when the server ends the connection via TCP RST Mar 1, 2024
@KircMax
Copy link
Contributor Author

KircMax commented Mar 6, 2024

Just noticed that I created a duplicate of #2538 will close this one as duplicate soon and follow the other one.

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 a pull request may close this issue.

1 participant