소스 검색

Log last meta-data in controller, and ease up just a bit on keepalives.

Adam Ierymenko 8 년 전
부모
커밋
5ebf5077f5
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      controller/EmbeddedNetworkController.cpp
  2. 2 2
      node/Constants.hpp

+ 1 - 1
controller/EmbeddedNetworkController.cpp

@@ -622,8 +622,8 @@ NetworkController::ResultCode EmbeddedNetworkController::doNetworkConfigRequest(
 		member["recentLog"] = recentLog;
 	}
 
-	// Update last modified time
 	member["lastModified"] = now;
+	member["lastRequestMetaData"] = metaData.data();
 
 	// If they are not authorized, STOP!
 	if (!authorizedBy) {

+ 2 - 2
node/Constants.hpp

@@ -256,12 +256,12 @@
 /**
  * How frequently to send heartbeats over in-use paths
  */
-#define ZT_PATH_HEARTBEAT_PERIOD 10000
+#define ZT_PATH_HEARTBEAT_PERIOD 14000
 
 /**
  * Paths are considered inactive if they have not received traffic in this long
  */
-#define ZT_PATH_ALIVE_TIMEOUT 25000
+#define ZT_PATH_ALIVE_TIMEOUT 45000
 
 /**
  * Minimum time between attempts to check dead paths to see if they can be re-awakened