Client output buffer limits: configuration of parameters for the different classes of clients implemented.

This commit is contained in:
antirez
2012-01-24 10:43:30 +01:00
parent 06b3dced99
commit 7fe8d49a70
3 changed files with 106 additions and 2 deletions

View File

@ -378,8 +378,8 @@ typedef struct zset {
} zset;
typedef struct clientBufferLimitsConfig {
unsigned long hard_limit_bytes;
unsigned long soft_limit_bytes;
unsigned long long hard_limit_bytes;
unsigned long long soft_limit_bytes;
time_t soft_limit_seconds;
} clientBufferLimitsConfig;
@ -805,6 +805,8 @@ void rewriteClientCommandArgument(redisClient *c, int i, robj *newval);
unsigned long getClientOutputBufferMemoryUsage(redisClient *c);
void freeClientsInAsyncFreeQueue(void);
void asyncCloseClientOnOutputBufferLimitReached(redisClient *c);
int getClientLimitClassByName(char *name);
char *getClientLimitClassName(int class);
#ifdef __GNUC__
void addReplyErrorFormat(redisClient *c, const char *fmt, ...)