# HG changeset patch # User Maxim Dounin # Date 1445354178 -10800 # Node ID dceb078b1156d305d482ea81ebaa02c3eb1fe531 # Parent 954b67727af32a2cfc5eef9ceb88ad1bbd6b2f25 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. diff -r 954b67727af3 -r dceb078b1156 src/event/ngx_event.c --- a/src/event/ngx_event.c Sat Oct 17 21:41:02 2015 +0900 +++ b/src/event/ngx_event.c Tue Oct 20 18:16:18 2015 +0300 @@ -670,6 +670,15 @@ } } +#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 =