Closed wsuetholz closed 6 years ago
Did you mean to post this over at https://github.com/eclipse/milo or are you really using this library/repo still?
Probably should be there... Should I repost?
Please do. Be careful with the code formatting and separating the question, and provide the exception in a code block as well if you can.
Really not a bug report as such.. More a plea for information on what I need to change to set this to 60000ms instead? In an attempt to do this I've recently added the "timeout = new Long(60000);" and ".setAcknowlegeTimeout(uint(timeout))" lines. With wireshark I see the connection and the authentication negotiations happening, but the timeout occurs while that negotiation is going on. Using the UAExpert client I've clocked the connect time from a low of 8 seconds to higher than the 10 seconds that UAExpert allows for. I've inquired with the vendor in order to speed up their side, but not getting much hope that they will be able to speed their end up enough. The code used to start the connection is below. The exception at the end of the startup method is what is seen in my logs.
` private static EndpointDescription updateEndpointUrl( EndpointDescription original, String hostname) throws URISyntaxException {
// EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints("opc.tcp://localhost:12686/test-server").get(); EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints(url).get(); EndpointDescription endpoint = Arrays.stream(endpoints) .filter(e -> e.getSecurityPolicyUri().equals(SecurityPolicy.None.getSecurityPolicyUri())) .findFirst().orElseThrow(() -> new Exception("no desired endpoints returned"));
`