Mercurial > hg > nginx-quic
comparison src/event/ngx_event.c @ 6266:dceb078b1156
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 20 Oct 2015 18:16:18 +0300 |
parents | ac52b46ebab5 |
children | 0f203a2af17c |
comparison
equal
deleted
inserted
replaced
6265:954b67727af3 | 6266:dceb078b1156 |
---|---|
668 if (cycle->files == NULL) { | 668 if (cycle->files == NULL) { |
669 return NGX_ERROR; | 669 return NGX_ERROR; |
670 } | 670 } |
671 } | 671 } |
672 | 672 |
673 #else | |
674 | |
675 if (ngx_timer_resolution && !(ngx_event_flags & NGX_USE_TIMER_EVENT)) { | |
676 ngx_log_error(NGX_LOG_WARN, cycle->log, 0, | |
677 "the \"timer_resolution\" directive is not supported " | |
678 "with the configured event method, ignored"); | |
679 ngx_timer_resolution = 0; | |
680 } | |
681 | |
673 #endif | 682 #endif |
674 | 683 |
675 cycle->connections = | 684 cycle->connections = |
676 ngx_alloc(sizeof(ngx_connection_t) * cycle->connection_n, cycle->log); | 685 ngx_alloc(sizeof(ngx_connection_t) * cycle->connection_n, cycle->log); |
677 if (cycle->connections == NULL) { | 686 if (cycle->connections == NULL) { |