From: antirez Date: Fri, 11 Dec 2009 23:04:20 +0000 (+0100) Subject: better handling of non blocking connect on redis-benchmark: EPIPE on read does not... X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/61c47ecd2551a729032ff277620d3eea7c7ed080 better handling of non blocking connect on redis-benchmark: EPIPE on read does not print an error message now --- diff --git a/TODO b/TODO index 7d397401..23ec0422 100644 --- a/TODO +++ b/TODO @@ -48,6 +48,7 @@ SHORT/LONG TERM RANDOM TODO ITEMS Most of this can be seen just as proposals, the fact they are in this list it's not a guarantee they'll ever get implemented ;) +* Give errors when incrementing a key that does not look like an integer, when providing as a sorted set score something can't be parsed as a double, and so forth. * Move dict.c from hash table to skip list, in order to avoid the blocking resize operation needed for the hash table. * FORK command (fork()s executing the commands received by the current client in the new process). Hint: large SORTs can use more cores, diff --git a/benchmark.c b/benchmark.c index fd949ea3..2984efe4 100644 --- a/benchmark.c +++ b/benchmark.c @@ -322,7 +322,8 @@ static void writeHandler(aeEventLoop *el, int fd, void *privdata, int mask) int len = sdslen(c->obuf) - c->written; int nwritten = write(c->fd, ptr, len); if (nwritten == -1) { - fprintf(stderr, "Writing to socket: %s\n", strerror(errno)); + if (errno != EPIPE) + fprintf(stderr, "Writing to socket: %s\n", strerror(errno)); freeClient(c); return; }