Skip to content

Commit

Permalink
Nginx: Cut out code about poll-kernel frequency
Browse files Browse the repository at this point in the history
Cut out unreasonable code about poll-kernel frequency
  • Loading branch information
firesidefox authored Jan 26, 2018
1 parent 67b8d97 commit 6484644
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/nginx-1.11.10/src/event/ngx_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6484644

Please sign in to comment.