Преглед на файлове

Merge branch 'master' into typedescription

Conflicts:
	src/server/ua_server.c
Julius Pfrommer преди 9 години
родител
ревизия
fa90c57095
променени са 2 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 3 0
      src/server/ua_securechannel_manager.c
  2. 1 1
      src/server/ua_server.c

+ 3 - 0
src/server/ua_securechannel_manager.c

@@ -62,6 +62,9 @@ UA_StatusCode UA_SecureChannelManager_open(UA_SecureChannelManager           *cm
     if(!entry) return UA_STATUSCODE_BADOUTOFMEMORY;
     UA_SecureChannel_init(&entry->channel);
 
+    response->responseHeader.stringTableSize = 0;
+    response->responseHeader.timestamp       = UA_DateTime_now();
+
     entry->channel.connection = conn;
     conn->channel = &entry->channel;
     entry->channel.securityToken.channelId       = cm->lastChannelId++;

+ 1 - 1
src/server/ua_server.c

@@ -124,7 +124,7 @@ UA_Server * UA_Server_new(void) {
 
 #define MAXCHANNELCOUNT 100
 #define STARTCHANNELID 1
-#define TOKENLIFETIME 6000000
+#define TOKENLIFETIME 600000
 #define STARTTOKENID 1
     UA_SecureChannelManager_init(&server->secureChannelManager, MAXCHANNELCOUNT,
                                  TOKENLIFETIME, STARTCHANNELID, STARTTOKENID);