From fb6afd33a27a557223de63978a88895a904c292c Mon Sep 17 00:00:00 2001 From: ueno Date: Wed, 24 Apr 2019 19:36:56 +0900 Subject: [PATCH] comment out: read() error many "read: Connection reset by peer" shown --- src/jsonrpc-c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jsonrpc-c.c b/src/jsonrpc-c.c index d49a6b5..ef25467 100644 --- a/src/jsonrpc-c.c +++ b/src/jsonrpc-c.c @@ -169,7 +169,7 @@ static void connection_cb(struct ev_loop *loop, ev_io *w, int revents) { int max_read_size = conn->buffer_size - conn->pos - 1; if ((bytes_read = read(fd, conn->buffer + conn->pos, max_read_size)) == -1) { - perror("read"); + //perror("read"); return close_connection(loop, w); } if (!bytes_read) {