Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 370:54f76b0b8dca
nginx-0.0.7-2004-06-27-22:01:57 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 27 Jun 2004 18:01:57 +0000 |
parents | 9c2515d70489 |
children | c9fdfccebc49 |
comparison
equal
deleted
inserted
replaced
369:9c2515d70489 | 370:54f76b0b8dca |
---|---|
1461 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 1461 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
1462 | 1462 |
1463 rev = c->read; | 1463 rev = c->read; |
1464 rev->event_handler = ngx_http_lingering_close_handler; | 1464 rev->event_handler = ngx_http_lingering_close_handler; |
1465 | 1465 |
1466 r->lingering_time = ngx_cached_time + clcf->lingering_time / 1000; | 1466 r->lingering_time = ngx_time() + clcf->lingering_time / 1000; |
1467 ngx_add_timer(rev, clcf->lingering_timeout); | 1467 ngx_add_timer(rev, clcf->lingering_timeout); |
1468 | 1468 |
1469 if (ngx_handle_level_read_event(rev) == NGX_ERROR) { | 1469 if (ngx_handle_level_read_event(rev) == NGX_ERROR) { |
1470 ngx_http_close_request(r, 0); | 1470 ngx_http_close_request(r, 0); |
1471 ngx_http_close_connection(c); | 1471 ngx_http_close_connection(c); |
1524 ngx_http_close_request(r, 0); | 1524 ngx_http_close_request(r, 0); |
1525 ngx_http_close_connection(c); | 1525 ngx_http_close_connection(c); |
1526 return; | 1526 return; |
1527 } | 1527 } |
1528 | 1528 |
1529 timer = r->lingering_time - ngx_cached_time; | 1529 timer = r->lingering_time - ngx_time(); |
1530 if (timer <= 0) { | 1530 if (timer <= 0) { |
1531 ngx_http_close_request(r, 0); | 1531 ngx_http_close_request(r, 0); |
1532 ngx_http_close_connection(c); | 1532 ngx_http_close_connection(c); |
1533 return; | 1533 return; |
1534 } | 1534 } |