diff --git a/src/Components/Modules/Node.cpp b/src/Components/Modules/Node.cpp index 9bfdc816..902425ab 100644 --- a/src/Components/Modules/Node.cpp +++ b/src/Components/Modules/Node.cpp @@ -372,7 +372,9 @@ namespace Components if (!entry) return; } +#ifdef DEBUG Logger::Print("Received registration request from %s\n", address.GetString()); +#endif Proto::Node::Packet packet; if (!packet.ParseFromString(data)) return; diff --git a/src/Components/Modules/Node.hpp b/src/Components/Modules/Node.hpp index 90e9d7d0..663fa387 100644 --- a/src/Components/Modules/Node.hpp +++ b/src/Components/Modules/Node.hpp @@ -2,7 +2,7 @@ #define NODE_QUERY_TIMEOUT 1000 * 30 * 1 // Invalidate nodes after 30 seconds without query response #define NODE_INVALID_DELETE 1000 * 60 * 10 // Delete invalidated nodes after 10 minutes #define NODE_FRAME_QUERY_LIMIT 1 // Limit of nodes to be queried per frame -#define NODE_FRAME_LOCK 80 // Limit of max frames per second +#define NODE_FRAME_LOCK 30 // Limit of max frames per second #define NODE_PACKET_LIMIT 111 // Send 111 nodes per synchronization packet #define NODE_STORE_INTERVAL 1000 * 60* 1 // Store nodes every minute #define SESSION_TIMEOUT 1000 * 10 // 10 seconds session timeout