RE: Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted (Zhang Chao)

2017-10-29 Thread yang chen
Thanks for your reply, why calling the ngx_event_expire_timers is unnecessary when ngx_process_events handler returns so quickly that the millisecond precision is not enough to display the calling time(less than 1ms maybe). ngx_process_events handler returns quickly which doesn't mean ngx_event_pr

Regex on Variable ($servername)

2017-10-29 Thread basti
Hello, i try to setup a catch all proxy server with nginx. I want to catch domains like this but have only domainname (without subdomain) in $domain In this example from nginx docs domain has "fullname". server {     server_name ~^(www\.)?(*?*.+)$;     root /sites/*$domain*; } servername: www.e

Re: why delta only include the execution time of ngx_process_events not ngx_event_process_posted

2017-10-29 Thread Zhang Chao
I think most of time delta is larger than zero, and i guess that the intention of the if statement for checking delta is non-zero is for ignoring some extreme case that the ngx_process_events handler returns so quickly that the millisecond precision is not enough to display the calling time(less t