Skip to content

Commit

Permalink
comment out: read() error
Browse files Browse the repository at this point in the history
many "read: Connection reset by peer" shown
  • Loading branch information
nayuta-ueno committed Apr 24, 2019
1 parent 38d1546 commit fb6afd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonrpc-c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fb6afd3

Please sign in to comment.