[Node] Faster query

This commit is contained in:
momo5502 2017-07-03 10:57:55 +02:00
parent c1dda9a028
commit 12eeac1903
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#define NODE_HALFLIFE (3 * 60 * 1000) //3min #define NODE_HALFLIFE (3 * 60 * 1000) //3min
#define NODE_REQUEST_LIMIT 3 #define NODE_REQUEST_LIMIT 10
namespace Components namespace Components
{ {

View File

@ -106,6 +106,7 @@ namespace Components
dataPacket.set_data(packet->data); dataPacket.set_data(packet->data);
Network::SendCommand(signature.first, "sessionFin", dataPacket.SerializeAsString()); Network::SendCommand(signature.first, "sessionFin", dataPacket.SerializeAsString());
std::this_thread::sleep_for(3ms);
} }
} }
} }

View File

@ -2,7 +2,7 @@
#define SESSION_TIMEOUT (10 * 1000) //10s #define SESSION_TIMEOUT (10 * 1000) //10s
#define SESSION_MAX_RETRIES 3 #define SESSION_MAX_RETRIES 3
#define SESSION_REQUEST_LIMIT 3 #define SESSION_REQUEST_LIMIT 10
//#define DISABLE_SESSION //#define DISABLE_SESSION