Connections are not closed by disposing the session|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Connections are not closed by disposing the session
Avatar
Soorjith PJ
New Member
Members
Forum Posts: 1
Member Since:
11/02/2016
sp_UserOfflineSmall Offline
1
11/02/2016 - 06:13
sp_Permalink sp_Print

Hi All,

I am not sure, this is the right forum to ask this question.

I am using OPC UA SDK 1.1.320.

 

Using following APIs to create session and read node values

 session = Session.Create(appConfig, configuredEP, true,appConfig.ApplicationName,5, null, null);

  session.Read(null, 2, TimestampsToReturn.Neither,

                         readCollection, out results, out diagnosticInfos);

My problem is, it is not releasing the connections used by these code.

When we run netstat -no | FIND "62541", it is resulting multiple open(established) connections, which are not getting cleared over the period of time.

Please let me know if anybody has any solution for this.

Thanks for your time.

Regards,

 

Soorjith

Avatar
Guest
Guests
2
11/02/2016 - 22:57
sp_Permalink sp_Print

OPC-F decided to make all OPC UA components available as open source. For .NET, see https://github.com/OPCFoundati.....n/UA-.NET/. You can look into the code to see what call to use to close a session and the underlying connection.

Also note, that OPC-F does not use the term "SDK" anymore (was always wrong) but just "sample libraries".

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 32
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1354
Posts: 4594