Mercurial > hg > nginx
comparison src/core/ngx_times.c @ 477:ad1e9ebf93bb release-0.1.13
nginx-0.1.13-RELEASE import
*) 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 <igor@sysoev.ru> |
---|---|
date | Tue, 21 Dec 2004 12:30:30 +0000 |
parents | 2ff194b74f1e |
children | 45a460f82aec |
comparison
equal
deleted
inserted
replaced
476:7e8b84ab09e9 | 477:ad1e9ebf93bb |
---|---|
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 |