Welcome! Log In Create A New Profile

Advanced

[nginx] Win32: timer_resolution now ignored with select.

Maxim Dounin
October 20, 2015 11:20AM
details: http://hg.nginx.org/nginx/rev/dceb078b1156
branches:
changeset: 6266:dceb078b1156
user: Maxim Dounin <mdounin@mdounin.ru>
date: Tue Oct 20 18:16:18 2015 +0300
description:
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.

diffstat:

src/event/ngx_event.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c
--- a/src/event/ngx_event.c
+++ b/src/event/ngx_event.c
@@ -670,6 +670,15 @@ ngx_event_process_init(ngx_cycle_t *cycl
}
}

+#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 =

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Win32: timer_resolution now ignored with select.

Maxim Dounin 547 October 20, 2015 11:20AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready