Skip to content

Commit

Permalink
Fix build on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Jun 19, 2024
1 parent f2c6abc commit 1369489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/lwan-io-wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,8 @@ int lwan_sendfile_fd(struct lwan_request *request,
offset += bytes_read;

blocks_sent++;
if (blocks_sent & 3 == 0) {
coro_yield(request->conn->coro, CONN_CORO_WRITE);
if ((blocks_sent & 3) == 0) {
coro_yield(request->conn->coro, CONN_CORO_WANT_WRITE);
}
}

Expand Down

0 comments on commit 1369489

Please sign in to comment.