Mercurial > hg > nginx-vendor-0-7
diff src/http/ngx_http_request.c @ 298:30862655219e NGINX_0_5_19
nginx 0.5.19
*) Change: now the $request_time variable has millisecond precision.
*) Change: the method $r->rflush of ngx_http_perl_module was renamed to
the $r->flush.
*) Feature: the $upstream_addr variable.
*) Feature: the "proxy_headers_hash_max_size" and
"proxy_headers_hash_bucket_size" directives.
Thanks to Volodymyr Kostyrko.
*) Bugfix: the files more than 2G could not be transferred using
sendfile and limit_rate on 64-bit platforms.
*) Bugfix: the files more than 2G could not be transferred using
sendfile on 64-bit Linux.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 24 Apr 2007 00:00:00 +0400 |
parents | 27d9d1f26b38 |
children | 55328d69b335 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -212,6 +212,7 @@ ngx_http_init_connection(ngx_connection_ static void ngx_http_init_request(ngx_event_t *rev) { + ngx_time_t *tp; socklen_t len; ngx_uint_t i; struct sockaddr_in sin; @@ -421,7 +422,9 @@ ngx_http_init_request(ngx_event_t *rev) r->main = r; - r->start_time = ngx_time(); + tp = ngx_timeofday(); + r->start_sec = tp->sec; + r->start_msec = tp->msec; r->method = NGX_HTTP_UNKNOWN;