major improvements for big apps
This commit is contained in:
@@ -94,7 +94,10 @@ private:
|
||||
|
||||
// Rate-limiting and idle-timeout constants / state
|
||||
static const uint32 CMD_RATE_LIMIT = 100u;
|
||||
static const uint32 CLIENT_IDLE_TIMEOUT_MS = 30000u;
|
||||
// Idle timeout: time with no incoming bytes before the connection is closed.
|
||||
// Large applications (1000+ signals) can take >30 s to process a DISCOVER/TREE
|
||||
// response, during which no commands are sent — use a generous default.
|
||||
static const uint32 CLIENT_IDLE_TIMEOUT_MS = 120000u;
|
||||
static const uint32 INPUT_BUFFER_MAX = 8192u;
|
||||
|
||||
uint32 cmdCountInWindow;
|
||||
|
||||
Reference in New Issue
Block a user