hyslopc commented on issue #1896:
URL: https://github.com/apache/plc4x/issues/1896#issuecomment-2486261591

   I don't think there's any time limit on subscriptions, but they are only 
valid for the lifetime of the channel, and there is a channel-lifetime session, 
which defines the maximum amount of time the channel will be open (in fact the 
server must leave the channel open 25% longer than this).  Default is one hour, 
so after 75 minutes, you will be disconnected, unless you specify a higher 
channel-lifetime (and your server supports it: you can see in the reply what it 
accepts, but this is not available to you via the PLC4X API, so probably you 
will not see it).  If your connection to the PLC UA server times out and you 
reconnect, you need to re-subscribe.  This is what I am doing.  In fact I am at 
74 minutes starting a new connection, resubscribing, and then once that is in 
place, I close the old session manually, before it times out.  Works fine 
(except for the memory leak).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to