I am using eclipse milo java OPCUA client SDK in our app for OPC implementation. I am able to create session, subscription and monitor. It is working fine but when opc server restarts and I try to delete previous session and create a new one with same parameters I get the below exception:
UaException: status=Bad_Timeout, message=timed out waiting for acknowledge
The line which throws the error is:
EndpointDescription[] endpoints = UaTcpStackClient.getEndpoints(endpointurl).get();
On server side I get the error:
OPCUAServerEndPoint#_on_client_connection The maximum number of connection has b een reached - Connection is refused
However, when I try to create the session again with same parameters it does get created