Mercurial > hg > nginx-vendor-current
annotate src/os/unix/ngx_time.c @ 92:45945fa8b8ba NGINX_0_2_0
nginx 0.2.0
*) The pid-file names used during online upgrade was changed and now is
not required a manual rename operation. The old master process adds
the ".oldbin" suffix to its pid-file and executes a new binary file.
The new master process creates usual pid-file without the ".newbin"
suffix. If the master process exits, then old master process renames
back its pid-file with the ".oldbin" suffix to the pid-file without
suffix.
*) Change: the "worker_connections" directive, new name of the
"connections" directive; now the directive specifies maximum number
of connections, but not maximum socket descriptor number.
*) Feature: SSL supports the session cache inside one worker process.
*) Feature: the "satisfy_any" directive.
*) Change: the ngx_http_access_module and ngx_http_auth_basic_module do
not run for subrequests.
*) Feature: the "worker_rlimit_nofile" and "worker_rlimit_sigpending"
directives.
*) Bugfix: if all backend using in load-balancing failed after one
error, then nginx did not try do connect to them during 60 seconds.
*) Bugfix: in IMAP/POP3 command argument parsing.
Thanks to Rob Mueller.
*) Bugfix: errors while using SSL in IMAP/POP3 proxy.
*) Bugfix: errors while using SSI and gzipping.
*) Bugfix: the "Expires" and "Cache-Control" header lines were omitted
from the 304 responses.
Thanks to Alexandr Kukushkin.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 23 Sep 2005 00:00:00 +0400 |
parents | 818201e5a553 |
children | 408f195b3482 |
rev | line source |
---|---|
0 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
7 #include <ngx_config.h> | |
8 #include <ngx_core.h> | |
9 | |
10 | |
11 void ngx_localtime(ngx_tm_t *tm) | |
12 { | |
18 | 13 #if (NGX_HAVE_LOCALTIME_R) |
0 | 14 time_t now; |
15 | |
16 now = ngx_time(); | |
66 | 17 (void) localtime_r(&now, tm); |
0 | 18 |
19 #else | |
20 time_t now; | |
21 ngx_tm_t *t; | |
22 | |
23 now = ngx_time(); | |
24 t = localtime(&now); | |
25 *tm = *t; | |
26 | |
27 #endif | |
28 | |
29 tm->ngx_tm_mon++; | |
30 tm->ngx_tm_year += 1900; | |
31 } | |
58 | 32 |
33 | |
34 void ngx_libc_localtime(struct tm *tm) | |
35 { | |
36 #if (NGX_HAVE_LOCALTIME_R) | |
37 time_t now; | |
38 | |
39 now = ngx_time(); | |
66 | 40 (void) localtime_r(&now, tm); |
58 | 41 |
42 #else | |
43 time_t now; | |
44 struct tm *t; | |
45 | |
46 now = ngx_time(); | |
47 t = localtime(&now); | |
48 *tm = *t; | |
49 | |
50 #endif | |
51 } | |
52 | |
53 | |
54 void ngx_libc_gmtime(struct tm *tm) | |
55 { | |
56 #if (NGX_HAVE_LOCALTIME_R) | |
57 time_t now; | |
58 | |
59 now = ngx_time(); | |
66 | 60 (void) gmtime_r(&now, tm); |
58 | 61 |
62 #else | |
63 time_t now; | |
64 struct tm *t; | |
65 | |
66 now = ngx_time(); | |
67 t = gmtime(&now); | |
68 *tm = *t; | |
69 | |
70 #endif | |
71 } |