Skip to content

Commit 2c4984f

Browse files
committed
a followup fix for the previous commit.
1 parent e5992f7 commit 2c4984f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ngx_http_lua_accessby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ ngx_http_lua_access_by_chunk(lua_State *L, ngx_http_request_t *r)
311311

312312
rev = r->connection->read;
313313

314-
if ((ngx_event_flags & NGX_USE_LEVEL_EVENT) && !rev->active) {
314+
if (!rev->active) {
315315
if (ngx_add_event(rev, NGX_READ_EVENT, 0) != NGX_OK) {
316316
return NGX_ERROR;
317317
}

src/ngx_http_lua_contentby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ ngx_http_lua_content_by_chunk(lua_State *L, ngx_http_request_t *r)
9999

100100
rev = r->connection->read;
101101

102-
if ((ngx_event_flags & NGX_USE_LEVEL_EVENT) && !rev->active) {
102+
if (!rev->active) {
103103
if (ngx_add_event(rev, NGX_READ_EVENT, 0) != NGX_OK) {
104104
return NGX_ERROR;
105105
}

src/ngx_http_lua_rewriteby.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ ngx_http_lua_rewrite_by_chunk(lua_State *L, ngx_http_request_t *r)
306306

307307
rev = r->connection->read;
308308

309-
if ((ngx_event_flags & NGX_USE_LEVEL_EVENT) && !rev->active) {
309+
if (!rev->active) {
310310
if (ngx_add_event(rev, NGX_READ_EVENT, 0) != NGX_OK) {
311311
return NGX_ERROR;
312312
}

0 commit comments

Comments
 (0)