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
UaClient setAutoReconnect(false) does not prevent OPC UA Stack to reconnect
January 15, 2014
12:31, EET
Avatar
Roger
New Member
Members
Forum Posts: 2
Member Since:
January 14, 2014
sp_UserOfflineSmall Offline

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

January 15, 2014
12:44, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

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.

May 24, 2019
15:24, EEST
Avatar
stielerit
New Member
Members
Forum Posts: 1
Member Since:
May 24, 2019
sp_UserOfflineSmall Offline

We tried to call setAutoReconnect(false) in SDK 4.0.0 and the client still reconnects when the connection is lost.
Any workaround / wrong behaviour?

May 24, 2019
16:16, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

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.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1