Open DocDriven opened 3 weeks ago
This is unfortunately a flaw with the current server implementation. If you see here, the server locks the address space before calling methods, meaning that if you try to lock it again you get a deadlock.
I believe this is not the case on the async-server
branch, but that's also a very major rewrite of the server SDK, so your existing code would need to change.
I have a usecase where I want to update the OPC UA servers variable when a method is called. The callback function of this method retrieves values from a database and uses them for the update. For this reason, I need the server's address space inside the callback to access the server variables. However, I am not getting it to work properly as my clients get a timeout.
This is a minimal working example without the database-related code.
I do not get an error, but the execution seems to stop inside the callback function with the line
I would be grateful for some help regarding this issue, maybe there is a more elegant way of accessing the address_space that I am not aware of.