]> git.saurik.com Git - redis.git/blobdiff - redis.c
max bytes of a received command enlarged from 1k to 16k
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index 1d2d2ae399db02963ce3a93947d04096ae5e33b9..63ae4948baebf95f2d090156dc87e9f09842ef1a 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -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;