Persistent Server Sessions Post-UAClient Termination

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
TonyBaloney
Jr. Member
Jr. Member
Posts: 1
Joined: 04 Oct 2023, 09:27

Persistent Server Sessions Post-UAClient Termination

Post by TonyBaloney »

Hi,

We have observed an inconsistent behavior when using UAExpert and a C++ Test Client, where in certain instances, upon closing the client by pressing the X button (top-right), the session doesn't always terminate cleanly. This means that even though the client has been closed, from the server's perspective, the session remains active, thereby not triggering our relevant methods designed for session termination.

Do you have any suggestions or best practices on what measures we might implement on the server-side to adequately account for, and manage, such occurrences?

Thanks,
Zahid Awan
Yokogawa Marex

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Persistent Server Sessions Post-UAClient Termination

Post by Support Team »

Hi,

on the server-side there is not much you can do about an "un-graceful" shutdown of a client, it my even just disapear. Same as with a temporary lost network connection, the server must keep the session (and maybe subscription) object, hoping for the client to show up again and re-activate, transfer subscription, re-publish missed data queues and continue.

The "un-graceful" ones will die with their session livetime.
Best regards
Unified Automation Support Team

Post Reply