comparison 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
comparison
equal deleted inserted replaced
297:df0fd0d43ed8 298:30862655219e
210 210
211 211
212 static void 212 static void
213 ngx_http_init_request(ngx_event_t *rev) 213 ngx_http_init_request(ngx_event_t *rev)
214 { 214 {
215 ngx_time_t *tp;
215 socklen_t len; 216 socklen_t len;
216 ngx_uint_t i; 217 ngx_uint_t i;
217 struct sockaddr_in sin; 218 struct sockaddr_in sin;
218 ngx_connection_t *c; 219 ngx_connection_t *c;
219 ngx_http_request_t *r; 220 ngx_http_request_t *r;
419 420
420 r->connection = c; 421 r->connection = c;
421 422
422 r->main = r; 423 r->main = r;
423 424
424 r->start_time = ngx_time(); 425 tp = ngx_timeofday();
426 r->start_sec = tp->sec;
427 r->start_msec = tp->msec;
425 428
426 r->method = NGX_HTTP_UNKNOWN; 429 r->method = NGX_HTTP_UNKNOWN;
427 430
428 r->headers_in.content_length_n = -1; 431 r->headers_in.content_length_n = -1;
429 r->headers_in.keep_alive_n = -1; 432 r->headers_in.keep_alive_n = -1;