1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-26 13:13:17 +00:00

Added rate limiter on MeshAgent.SendCommand for console messages

This commit is contained in:
Bryan Roe
2022-01-11 00:31:11 -08:00
parent 2274477316
commit f7ea61512a
2 changed files with 26 additions and 0 deletions

View File

@@ -250,6 +250,9 @@ typedef struct MeshAgentHostContainer
char *meshServiceName;
char *displayName;
int serviceReserved;
long consoleText_timeStamp;
int consoleText_counter;
int consoleText_maxRate;
#if defined(_WINSERVICE)
int runningAsConsole;
#endif
@@ -272,6 +275,7 @@ char* MeshAgent_MakeAbsolutePathEx(char *basePath, char *localPath, int escapeBa
AgentCapabilities: Integer Mask, specifying supported Agent Capabilities
agentName If set, this will be sent to the server instead of the hostname
compactDirtyMinimum Minimum dirty bytes threshold for db.compact() operation
consoleTextMaxRate: Sets rate limit for sendConsoleText. Default is 10 messages per second.
controlChannelDebug: If set, will log/display controlChannel messages (Except for JSON messages)
controlChannelIdleTimeout: Integer value specifying the idle timeout in seconds, to send Ping/Pong to server, to keep connection alive
coreDumpEnabled: If set, a dump file will be written when the agent crashes