Lachim / redis

Automatically exported from code.google.com/p/redis
2 stars 0 forks source link

abort REDIS_IOBUF_LEN size #501

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
REDIS_IOBUF_LEN size is 1024, if the client uploads the size of the more than 
1024 how to do?

networking.c
readQueryFromClient method

char buf[REDIS_IOBUF_LEN];
int nread;
...
nread = read(fd,buf, REDIS_IOBUF_LEN);
...
if(nread){
    c->querybuf = sdscatlen(c->querybuf,buf,nread);
    c->lastinteraction = time(NULL);
}

Original issue reported on code.google.com by bcj1...@gmail.com on 29 Mar 2011 at 3:28

GoogleCodeExporter commented 8 years ago
The read function is called multiple times (by the event loop). This is more a 
general question than an issue, could you use the mailing list for this in the 
future? Thanks.

Original comment by pcnoordh...@gmail.com on 29 Mar 2011 at 8:07