From 6484644fe3117ad51128993d99a2fb7582d84334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=A8=81?= Date: Fri, 26 Jan 2018 17:14:13 +0800 Subject: [PATCH] Nginx: Cut out code about poll-kernel frequency Cut out unreasonable code about poll-kernel frequency --- app/nginx-1.11.10/src/event/ngx_event.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/nginx-1.11.10/src/event/ngx_event.c b/app/nginx-1.11.10/src/event/ngx_event.c index ffe30a463..79f741628 100644 --- a/app/nginx-1.11.10/src/event/ngx_event.c +++ b/app/nginx-1.11.10/src/event/ngx_event.c @@ -204,7 +204,6 @@ ngx_process_events_and_timers(ngx_cycle_t *cycle) ngx_uint_t flags; ngx_msec_t timer, delta; #if (NGX_HAVE_FSTACK) - static ngx_uint_t tick; static ngx_msec_t initial; //msec #endif @@ -255,14 +254,12 @@ ngx_process_events_and_timers(ngx_cycle_t *cycle) #if (NGX_HAVE_FSTACK) /* handle message from kernel (PS: signals from master) in case of network inactivity */ - if (ngx_current_msec - initial >= ngx_schedule_timeout || tick >= ngx_schedule_timeout) { + if (ngx_current_msec - initial >= ngx_schedule_timeout) { (void) ngx_ff_process_host_events(cycle, 0, flags); /* Update timer*/ initial = ngx_current_msec; - tick = 0; } - tick++; #endif delta = ngx_current_msec - delta;