mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 08:41:21 +00:00
better handling of non blocking connect on redis-benchmark: EPIPE on read does not print an error message now
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user