comparison src/http/ngx_http_request.c @ 1179:6e2216ad2c87

$request_time has millisecond precision
author Igor Sysoev <igor@sysoev.ru>
date Sat, 21 Apr 2007 07:50:19 +0000
parents b1ebd03de948
children 86c5c9288acc
comparison
equal deleted inserted replaced
1178:a77f6980de50 1179:6e2216ad2c87
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;