Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 7737:ed17a2a95c8d
Removed dead code from ngx_http_set_keepalive().
The code removed became dead after 98f03cd8d6cc (0.8.14),
circa when the request reference counting was introduced.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 06 Nov 2020 23:44:47 +0300 |
parents | 59e1c73fe02b |
children | 554c6ae25ffc |
comparison
equal
deleted
inserted
replaced
7736:a46fcf101cfc | 7737:ed17a2a95c8d |
---|---|
3037 | 3037 |
3038 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 3038 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
3039 | 3039 |
3040 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); | 3040 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); |
3041 | 3041 |
3042 if (r->discard_body) { | |
3043 r->write_event_handler = ngx_http_request_empty_handler; | |
3044 r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000); | |
3045 ngx_add_timer(rev, clcf->lingering_timeout); | |
3046 return; | |
3047 } | |
3048 | |
3049 c->log->action = "closing request"; | 3042 c->log->action = "closing request"; |
3050 | 3043 |
3051 hc = r->http_connection; | 3044 hc = r->http_connection; |
3052 b = r->header_in; | 3045 b = r->header_in; |
3053 | 3046 |