max bytes of a received command enlarged from 1k to 16k

This commit is contained in:
antirez 2009-05-26 16:35:18 +02:00
parent a56785f73c
commit a1f6fa5edc

View File

@ -1421,7 +1421,7 @@ again:
* on the query buffer try to process the next command. */
if (processCommand(c) && sdslen(c->querybuf)) goto again;
return;
} else if (sdslen(c->querybuf) >= 1024) {
} else if (sdslen(c->querybuf) >= 1024*32) {
redisLog(REDIS_DEBUG, "Client protocol error");
freeClient(c);
return;