]> git.saurik.com Git - redis.git/blobdiff - src/networking.c
added diskstore.c, currently just a stub
[redis.git] / src / networking.c
index 1dab8927586af844454abad521431a69437e7479..26ee46f63cfbbfa1566321ac3ccd60a38289179c 100644 (file)
@@ -804,7 +804,7 @@ int processMultibulkBuffer(redisClient *c) {
                 bulklen = strtol(c->querybuf+pos+1,&eptr,10);
                 tolerr = (eptr[0] != '\r');
                 if (tolerr || bulklen == LONG_MIN || bulklen == LONG_MAX ||
-                    bulklen < 0 || bulklen > 1024*1024*1024)
+                    bulklen < 0 || bulklen > 512*1024*1024)
                 {
                     addReplyError(c,"Protocol error: invalid bulk length");
                     setProtocolError(c,pos);