Mercurial > hg > nginx-ranges
comparison src/core/ngx_times.c @ 26:45fe5b98a9de NGINX_0_1_13
nginx 0.1.13
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 00:00:00 +0300 |
parents | 6f8b0dc0f8dd |
children | 2879cd3a40cb |
comparison
equal
deleted
inserted
replaced
25:21488c53e135 | 26:45fe5b98a9de |
---|---|
39 #define slot 0 | 39 #define slot 0 |
40 | 40 |
41 #endif | 41 #endif |
42 | 42 |
43 | 43 |
44 #if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) | 44 #if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) |
45 | 45 |
46 volatile time_t *ngx_cached_time; | 46 volatile time_t *ngx_cached_time; |
47 static time_t cached_time[NGX_TIME_SLOTS]; | 47 static time_t cached_time[NGX_TIME_SLOTS]; |
48 | 48 |
49 #else | 49 #else |
82 | 82 |
83 ngx_cached_err_log_time.len = sizeof("1970/09/28 12:00:00") - 1; | 83 ngx_cached_err_log_time.len = sizeof("1970/09/28 12:00:00") - 1; |
84 ngx_cached_http_time.len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1; | 84 ngx_cached_http_time.len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT") - 1; |
85 ngx_cached_http_log_time.len = sizeof("28/Sep/1970:12:00:00 +0600") - 1; | 85 ngx_cached_http_log_time.len = sizeof("28/Sep/1970:12:00:00 +0600") - 1; |
86 | 86 |
87 #if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) | 87 #if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) |
88 ngx_cached_time = &cached_time[0]; | 88 ngx_cached_time = &cached_time[0]; |
89 #endif | 89 #endif |
90 | 90 |
91 ngx_gettimeofday(&tv); | 91 ngx_gettimeofday(&tv); |
92 | 92 |
135 slot = 0; | 135 slot = 0; |
136 } else { | 136 } else { |
137 slot++; | 137 slot++; |
138 } | 138 } |
139 | 139 |
140 #if (NGX_THREADS && (TIME_T_SIZE > SIG_ATOMIC_T_SIZE)) | 140 #if (NGX_THREADS && (NGX_TIME_T_SIZE > NGX_SIG_ATOMIC_T_SIZE)) |
141 ngx_cached_time = &cached_time[slot]; | 141 ngx_cached_time = &cached_time[slot]; |
142 #endif | 142 #endif |
143 | 143 |
144 #endif | 144 #endif |
145 | 145 |