Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Is there any timeout or other parameters for the client and session?
October 31, 2022
22:51, EET
Avatar
amj005
Member
Members
Forum Posts: 33
Member Since:
July 27, 2021
sp_UserOfflineSmall Offline

Hi,

Similar to lifetimetimout (with lifetimecount) and maxkeepalivecount for subscription, is there any time restrictions or settings for client or session itself?
If so, what is the default values? And how to handle timeouts?
If not, can we assume the client and session to be connected and running all the time without restrictions?

Thanks.

November 1, 2022
10:52, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

If we take the whole OpenSecureChannel, CreateSession, ActivateSession etc. into account there are 10s of settings. However, in practice SDK handles all that for you, you just set what security mode you wish to use (+user auth if needed). Explaining it in full is outside of the scope of any forum answer and would be impossible to do in any timely manner (this is 10s pages if not 100+ in the OPC UA Specification, depending on how you count).

Thus, please just read the UaClient javadocs (search “timeout” if you are interested on that) and the tutorials.

If you have a specific problem, please say that, and then I can hopefully give a more deeper answer.

However, I can at least note of the timeouts: How to handle timeouts is upto you. They are just another ServiceException, though I have to note that it might be impossible to know if the request was timeouted by the SDK in the client side or did the server actually send the Bad_Timeout StatusCode. In some cases it is simply increasing the timeout value with UaClient.setTImeout(…) (though that will affect all messages, but not the “status check” Reading of ServerStatus nor connecting and the connection timeout only controls the initial connection, after that we read some type info so the actual time might be longer).

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 738

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1524

Posts: 6451

Newest Members:

jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1