Skip to content

Commit 7cb4e09

Browse files
committed
introduced a minor optimization that we can save one recv call when the read event is active *and* the read event is not ready.
1 parent e633e75 commit 7cb4e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ ngx_http_lua_socket_read(ngx_http_request_t *r,
12931293
}
12941294
}
12951295

1296-
#if 0
1296+
#if 1
12971297
if (rev->active && !rev->ready) {
12981298
rc = NGX_AGAIN;
12991299
break;

0 commit comments

Comments
 (0)