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

Auto-reconnect breaks registered reads in some cases #557

Open
magiconair opened this issue Feb 15, 2022 · 1 comment
Open

Auto-reconnect breaks registered reads in some cases #557

magiconair opened this issue Feb 15, 2022 · 1 comment

Comments

@magiconair
Copy link
Member

After an auto-reconnect all registered node ids are (might be) invalid.

We have recently stumbled over this rather obvious issue and disabled registered reads on our clients in turn.

The gopcua client handles subscriptions gracefully on reconnects since it recreates the monitored items but it does not do the same with registered node ids.

So what you might observe is that you register a node id, perform reads with it and all of a sudden you get a StatusBadNodeIDInvalid error because the client has reconnected, the session got recreated and the registered node id is no longer valid.

I think this is only the case when the session had to be re-created so this might not be an issue for all servers

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

No branches or pull requests

1 participant