Skip to content

Commit

Permalink
lwan_status_critical_perror() shouldn't be used in steady state!
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed May 16, 2024
1 parent d9a4878 commit b4f8966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/lwan-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ int lwan_request_awaitv_any(struct lwan_request *r, ...)

if (UNLIKELY(ret < 0)) {
errno = -ret;
lwan_status_critical_perror("prepare_awaitv()");
lwan_status_perror("prepare_awaitv()");
coro_yield(r->conn->coro, CONN_CORO_ABORT);
__builtin_unreachable();
}
Expand Down Expand Up @@ -810,7 +810,7 @@ int lwan_request_awaitv_all(struct lwan_request *r, ...)

if (UNLIKELY(ret < 0)) {
errno = -ret;
lwan_status_critical_perror("prepare_awaitv()");
lwan_status_perror("prepare_awaitv()");
coro_yield(r->conn->coro, CONN_CORO_ABORT);
__builtin_unreachable();
}
Expand Down Expand Up @@ -857,7 +857,7 @@ static inline int async_await_fd(struct lwan_connection *conn,
return UNLIKELY(conn->flags & CONN_HUNG_UP) ? -fd : fd;
}

lwan_status_critical_perror("prepare_await(%d)", fd);
lwan_status_perror("prepare_await(%d)", fd);
coro_yield(conn->coro, CONN_CORO_ABORT);
__builtin_unreachable();
}
Expand Down

0 comments on commit b4f8966

Please sign in to comment.