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

LDS cache update #80

Open
mtektas opened this issue Mar 9, 2023 · 1 comment
Open

LDS cache update #80

mtektas opened this issue Mar 9, 2023 · 1 comment

Comments

@mtektas
Copy link

mtektas commented Mar 9, 2023

Hello,
I'm writing an OPC UA client application. I have installed the LDS-ME service on the machine that the client application runs on it.
I have embedded devices and each device has its own OPC UA server. They announce themselves via mDNS and I can get the list of servers (devices) by calling the FindServersOnNetwork function. When a device is added to the network and after power on device announces itself via mDNS. Up to now, everything works seamlessly. The problem is if a device is shut down or unplugged from the network LDS still keeps that device info and the list returned from FindServersOnNetwork is not up-to-date. I tried restarting LDS from my client application but it needs administrative privileges so the customer who uses the client application may not have admin privileges.
Is there any suggestion to solve this problem? How can I refresh the LDS cache in order to get up to date server list?

@erhardgrishaber
Copy link
Contributor

This is a bug in the LDS. When registering via OPC-UA (RegisterServer/RegisterServer2) a timestamp is added; this is compared to the "ExpirationMaxAge = 600" (see configuration file) and if the entry is too old, it is removed. This does not happen when registering via mDNS only. I will make a fix next week for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants