FreeOpcUa / freeopcua

Open Source C++ OPC-UA Server and Client Library
http://freeopcua.github.io/
GNU Lesser General Public License v3.0
712 stars 340 forks source link

Server Timeout #374

Open apoorvcn47 opened 3 years ago

apoorvcn47 commented 3 years ago

when I connect to a server, if there is no data transfer for 60 seconds, the host closes the connection. I thought the whole point of keep alive thread was to avoid this problem. Am I doing something wrong here?

destogl commented 3 years ago

Did it work for you?

apoorvcn47 commented 3 years ago

Did it work for you?

No. I have a separate loop which reads a server register every 30s. In that way, I am keeping the connection alive. But I am sure there is a built in way to do the same. Is there any parameter I can check to make sure that hearbeat loop is working?