sdsfree(new->obuf);
new->obuf = sdsdup(c->obuf);
if (config.randomkeys) randomizeClientKey(c);
- new->replytype = c->replytype;
- if (c->replytype == REPLY_BULK)
- new->readlen = -1;
+ prepareClientForReply(new,c->replytype);
}
}
/* Use writev() if we have enough buffers to send */
+ #if 0
if (!server.glueoutputbuf &&
listLength(c->reply) > REDIS_WRITEV_THRESHOLD &&
!(c->flags & REDIS_MASTER))
sendReplyToClientWritev(el, fd, privdata, mask);
return;
}
+ #endif
while(listLength(c->reply)) {
if (server.glueoutputbuf && listLength(c->reply) > 1)