mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
Win32: timer_resolution now ignored with select.
As setitimer() isn't available on Windows, time wasn't updated at all if timer_resolution was used with the select event method. Fix is to ignore timer_resolution in such cases.
This commit is contained in:
parent
67614b3aa3
commit
faed7212fe
1 changed files with 9 additions and 0 deletions
|
|
@ -670,6 +670,15 @@ ngx_event_process_init(ngx_cycle_t *cycle)
|
|||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
if (ngx_timer_resolution && !(ngx_event_flags & NGX_USE_TIMER_EVENT)) {
|
||||
ngx_log_error(NGX_LOG_WARN, cycle->log, 0,
|
||||
"the \"timer_resolution\" directive is not supported "
|
||||
"with the configured event method, ignored");
|
||||
ngx_timer_resolution = 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
cycle->connections =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue