12:31, EET
January 14, 2014
Hi, in my application I would like to control reconnect attempts and I therefore tried to setAutoReconnect(false) and then listen to ServerState changes to control when to call reconnect. However it seems that this switch only disables the reconnect functionality in the Prosys OPC Java client stack and not in the OPC Foundation UA stack which still tries to reconnect.
Is this a bug or feature?
Best Regards,
Roger Eriksson Bjurek
12:44, EET
December 21, 2011
Well, yes the stack will try to resend packages, but the SDK manages the proper reconnection including channel and session recreation as necessary.
You might like to try also with the new (partly reworked) stack (and SDK) and see if it behaves any better in this situation. It is currently available as public beta.
15:24, EEST
May 24, 2019
16:16, EEST
April 3, 2012
Hi,
Hmm.. that should prevent it. At least as long as it is called before the connection break happens. I assume you do this? Otherwise please check that you are not calling UaClient.reconnect() manually somewhere.
How long/what kind of connection break it was? If the break is really short and returns as-if it never was broken that might go undetected as the status is read periodically from the server. See e.g. https://stackoverflow.com/questions/8007995/how-to-identify-a-broken-socket-connection-in-java-immediately.
Most Users Ever Online: 1919
Currently Online:
33 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: 729
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1