Hello,
I have complied embedded server SDK opcua_example as is, didn’t change anything except ip address server URI and name.
The weird thing is the random time before actual listener starts. Here is the server output:
2015-09-17 23:18:26.277 - Info: opcua_sdk_366BA0CEEF83431540BF6EE1119D155394E913 F7.cpp, Line: 33
Log string payload: "MatrikonOPC OPC-UA Embedded Server SDK Version 2.1.1"
2015-09-17 23:18:26.277 - Info: opcua_sdk_366BA0CEEF83431540BF6EE1119D155394E913 F7.cpp, Line: 164
Log string payload: "Checking INTERVALS_ARRAY"
2015-09-17 23:18:26.277 - Info: opcua_sdk_366BA0CEEF83431540BF6EE1119D155394E913 F7.cpp, Line: 317
Log string payload: "Checking LOCALES"
2015-09-17 23:18:26.277 - Info: opcua_sdk_366BA0CEEF83431540BF6EE1119D155394E913 F7.cpp, Line: 334
Log string payload: "Checking PROFILE_ARRAY"
2015-09-17 23:18:26.280 - Info: opcua_sdk_B94CFCA5BF59D68F04DBFA3008C11EFC7ECF69 A2.cpp, Line: 27
Log string payload: "PRODUCT_NAME"
2015-09-17 23:18:26.280 - Info: opcua_sdk_B94CFCA5BF59D68F04DBFA3008C11EFC7ECF69 A2.cpp, Line: 28
Log string payload: "SOFTWARE_VERSION"
2015-09-17 23:32:23.447 - Server-socket() is OK...
2015-09-17 23:32:23.447 - Server-setsockopt() is OK...
2015-09-17 23:32:23.447 - Server-bind() is OK...
2015-09-17 23:32:23.447 - Server-listen() is OK...
2015-09-17 23:36:10.528 - Server-accept() is OK...
2015-09-17 23:36:10.528 - 10.36.32.60: New connection on socket 4
2015-09-17 23:36:10.591 - server: UAServer_Callback_close_connection
2015-09-17 23:36:10.591 - Info: opcua_sdk_E564773EFD70F60FF633CF37013CD52BEDC22C
In this case I have 4 minutes delay before server will accept connections.
This gap here:
2015-09-17 23:18:26.280 - Info: opcua_sdk_B94CFCA5BF59D68F04DBFA3008C11EFC7ECF69 A2.cpp, Line: 28
Log string payload: "SOFTWARE_VERSION"
2015-09-17 23:32:23.447 - Server-socket() is OK...
Before I will dig into this may be somebody already knows why this happens?
So, what I am doing wrong? Sometimes it starts immediately, sometimes I have these gaps.
Here is some OS info:
Linux 2.6.32-573.3.1.el6.x86_64
CentOS release 6.7 (Final)
Edited by user Thursday, February 11, 2016 4:32:38 PM(UTC)
| Reason: Not specified