diff options
author | Ruslan Ermilov <ru@nginx.com> | 2020-11-06 23:44:47 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2020-11-06 23:44:47 +0300 |
commit | aad0d1bf1cab58a1b1e1499485e63b7a15ab183c (patch) | |
tree | 26b7043d7d2c5274b40ebe5ba731f9441c5a0550 /src/http/ngx_http_request.c | |
parent | 3c0427373381097a9e25ccc2cb46bbc1ccac87a2 (diff) | |
download | nginx-aad0d1bf1cab58a1b1e1499485e63b7a15ab183c.tar.gz nginx-aad0d1bf1cab58a1b1e1499485e63b7a15ab183c.zip |
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.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 204a9399d..5ee9dee14 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -3039,13 +3039,6 @@ ngx_http_set_keepalive(ngx_http_request_t *r) ngx_log_debug0(NGX_LOG_DEBUG_HTTP, c->log, 0, "set http keepalive handler"); - if (r->discard_body) { - r->write_event_handler = ngx_http_request_empty_handler; - r->lingering_time = ngx_time() + (time_t) (clcf->lingering_time / 1000); - ngx_add_timer(rev, clcf->lingering_timeout); - return; - } - c->log->action = "closing request"; hc = r->http_connection; |