Detecting connection loss in reverse connect scheme|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Detecting connection loss in reverse connect scheme
Avatar
Alexander Sobetskiy
Member
Members
Forum Posts: 6
Member Since:
07/15/2024
sp_UserOfflineSmall Offline
1
10/09/2025 - 18:28
sp_Permalink sp_Print

In reverse connection ua-server initiates connection to ua-client by sending RHEL message.

What is the preferable way to determine the connection loss so ua server can resend RHEL message to the client?

 

Can we enable tcp keep-alive on ua-server side?

Or should we have some configurable timeout on ua-server side like "timeout of no client messages received" ?

Or may be ua-server shall once in a sec try to open socket to the client and this way monitor connection loss?

Or may be ua-server should wait for session timeout to pass?

Any other way?

Avatar
Randy Armstrong
Admin
Forum Posts: 1666
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
10/10/2025 - 13:51
sp_Permalink sp_Print

You would depend on TCP level errors to determine that the socket has been lost. 

This could mean long time outs or other error reporting delays that occur when relying on TCP stack error notifications.

The spec provides no recommendations when it comes to setting TCP socket properties but perhaps it should.

Can you add a mantis issue for Part 6 with some suggestions for spec additions:

https://mantis.opcfoundation.o.....default=no

Forum Timezone: America/Phoenix
Most Users Ever Online: 975
Currently Online:
Guest(s) 71
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1516
Posts: 5130