Online Forums
Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions. You do not have to be a licensed user of our product.
Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible. Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.
Do not use the Contact page for technical issues.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Reading, Writing, Subscriptions, Property Access
- OPC XML-DA. There are many sockets open in subscription mode
OPC XML-DA. There are many sockets open in subscription mode
The connections described above are create per common rules used in QuickOPC - see opclabs.doc-that.com/files/onlinedocs/QuickOpc/Latest/User%2...e.html#Isolated%20Clients.html .
Let's say that you use all EasyDAClient objects with their default setting Isolated = false. In this case, even if you have multiple EasyDAClient instances, for the same ServerDescriptor (same server URL, mainly), one "internal" client will be created, and its connection limit will be taken from EasyDAClient.AdaptableParameters.HttpClientConnectionLimit .
If you, however, set Isolated = true on any EasyDAClient instance, it will use its own connection(s) to the targer server(s), and for each of these, the easyDAClient.IsolatedParameters.HttpClientConnectionLimit from that instance will apply.
So, to answer your question:
You would create two easyDAClient instances, set their Isolated = true, and set their easyDAClient.IsolatedParameters.HttpClientConnectionLimit to 2 and 20, respectively. But note that the limit is still per server descriptor. So, for example, if on the first instance you would work with 3 target servers, each of them will be limited to 2 - so that EasyDAClient instance would use max 2+2+2=6 HTTP connections."That is, create 2 instances of EasyDAClient class and set the limit to 2 connections for the first instance, where 2nd instance has limit 20 connections?"
Best regards
Please Log in or Create an account to join the conversation.
Can you clarify how the EasyDAClient.AdaptableParameters.HttpClientConnectionLimit works?
Does it restrict the number of HTTP client connections for each instance of EasyDAClient or it specifies total number per application?
How I can specify max number of HTTP client connections used in OPC XML-DA per EasyDAClient instance?
That is, create 2 instances of EasyDAClient class and set the limit to 2 connections for the first instance, where 2nd instance has limit 20 connections?
Thank you
Please Log in or Create an account to join the conversation.
It's kind of weird anyway, because as version 2019.1 does only support .NET 4.7+, it should be possible to even build it while targeting an older version. But it is possible
(?) that Visual Studio has picked an older QuickOPC version through NuGet in order to satisfy the dependency.
Best regards
Please Log in or Create an account to join the conversation.
I found out what the problem was. The test application target framework was .Net Framework 4.6.2.
The problem is resolved when upgrading to .Net Framework 4.7 version and reinstalling QuickOpc package from nuget
Thank you for assistance
Please Log in or Create an account to join the conversation.
this looks like that the 500 items used has triggered a response from the server that is bigger than the (default) maximum size of a message.
is this still under .NET Framework? According to our developer, the call stack looks like from the assemblies we have for .NET Standard (which, in theory, can also be used from .NET Framework, but not by default).
It is an important distinction for us, because the low-level communication that implements OPC XML-DA must be done differently on these two platforms. So, we do not want to investigate in the wrong part.
Can you post your .csproj file here, or a snapshot of the Project Properties page in Visual Studio, or something similar that would allow us to determine this with certainty?
Thank you
Please Log in or Create an account to join the conversation.
Attachments:
Please Log in or Create an account to join the conversation.
Please download and rebuild with the latest QuickOPC 2019.1, build 422.1 or later, as on our Web page and NuGet.
There is now a new setting for this, called HttpClientConnectionLimit, in EasyDAAdaptableParameters. Allows setting the maximum number of HTTP client connections used in OPC XML-DA. Works in .NET Framework. Works partially in .NET Core - only when authentication is not used.
Should be set just once, before the operations begin. If yours EasyDAClient.Isolated is 'false' (the default), the value from static EasyDAClient.AdaptableParameters.HttpClientConnectionLimit will be used. If yours EasyDAClient.Isolated is 'true', the value from that instance's EasyDAClient.IsolatedParameters.HttpClientConnectionLimit will be used.
The parameter defaults to 20, you can try changing it to 2 or so.
Best regards
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Are you targeting .NET Framework or .NET Core?
Best regards
Please Log in or Create an account to join the conversation.
I will reply here when I have more information.
Please Log in or Create an account to join the conversation.
- Forum
- Discussions
- QuickOPC-Classic in .NET
- Reading, Writing, Subscriptions, Property Access
- OPC XML-DA. There are many sockets open in subscription mode