Permalink
Browse files

read buffer size is now 16k. Limit to 1MB payloads removed.

  • Loading branch information...
1 parent 860b602 commit 8ac86b967e3c63f22925c2b0b032ecc797516fb5 @antirez committed Nov 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mc-benchmark.c
View
@@ -220,7 +220,7 @@ static int readLen(char *p, int *len) {
static void readHandler(aeEventLoop *el, int fd, void *privdata, int mask)
{
- char buf[1024], *p;
+ char buf[1024*16], *p;
int nread, pos=0, len=0;
client c = privdata;
MCB_NOTUSED(el);
@@ -417,7 +417,7 @@ void parseOptions(int argc, char **argv) {
config.datasize = atoi(argv[i+1]);
i++;
if (config.datasize < 1) config.datasize=1;
- if (config.datasize > 1024*1024) config.datasize = 1024*1024;
+ if (config.datasize > 1024*1024*1024) config.datasize = 1024*1024*1024;
} else if (!strcmp(argv[i],"-r") && !lastarg) {
config.randomkeys = 1;
config.randomkeys_keyspacelen = atoi(argv[i+1]);

0 comments on commit 8ac86b9

Please sign in to comment.