Skip to content

Commit

Permalink
bulk transfers limited to 512 MB as this is the new limit of all the …
Browse files Browse the repository at this point in the history
…redis strings
  • Loading branch information
antirez committed Dec 15, 2010
1 parent beb1aab commit 401c3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/networking.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 401c3e2

Please sign in to comment.