convertersystems / opc-ua-client

Visualize and control your enterprise using OPC Unified Architecture (OPC UA) and Visual Studio.
MIT License
403 stars 119 forks source link

UaTcpDiscoveryService.GetEndpointsAsync does not respect TimeoutHint #231

Open trivalik opened 2 years ago

trivalik commented 2 years ago

If you pass a HintTimeout to UaTcpDiscoveryService.GetEndpointsAsync it still times out with 5 second. The weird thing is that UaApplicationOptions has default timeout of 15000.

I believe the timeout comes from this line https://github.com/convertersystems/opc-ua-client/blob/1f1c77436a42a57f7020f0e3b7bccb7728eb2700/UaClient/ServiceModel/Ua/Channels/UaTcpConnectionProvider.cs#L18