Implementation of the internals that make possible to terminate clients overcoming configured output buffer (soft and hard) limits.

This commit is contained in:
antirez
2012-01-23 16:12:37 +01:00
parent 890da62eea
commit 7eac2a75a4
4 changed files with 122 additions and 0 deletions

View File

@ -296,6 +296,7 @@ struct redisClient *createFakeClient(void) {
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
c->reply = listCreate();
c->reply_bytes = 0;
c->obuf_soft_limit_reached_time = 0;
c->watched_keys = listCreate();
listSetFreeMethod(c->reply,decrRefCount);
listSetDupMethod(c->reply,dupClientReplyValue);