Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
router: do not print warning if write failed due to connection cancel…
Browse files Browse the repository at this point in the history
…led or reset (#1388)
  • Loading branch information
thibault-martinez authored and Sam Chen committed Jul 27, 2019
1 parent 7dff862 commit d4dbc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ciri/node/network/router.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static void router_on_async(uv_async_t *const handle) {
}

static void router_on_write(uv_write_t *const req, int const status) {
if (status) {
if (status && status != UV_ECANCELED && status != UV_ECONNRESET) {
log_warning(logger_id, "Writing data failed: %s\n", uv_strerror(status));
}
free(req->data);
Expand Down

0 comments on commit d4dbc80

Please sign in to comment.