Welcome! Log In Create A New Profile

Advanced

[nginx] Removed dead code from ngx_http_set_keepalive().

November 06, 2020 03:46PM
details: https://hg.nginx.org/nginx/rev/ed17a2a95c8d
branches:
changeset: 7737:ed17a2a95c8d
user: Ruslan Ermilov <ru@nginx.com>
date: Fri Nov 06 23:44:47 2020 +0300
description:
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:

src/http/ngx_http_request.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r a46fcf101cfc -r ed17a2a95c8d src/http/ngx_http_request.c
--- a/src/http/ngx_http_request.c Wed Oct 28 10:56:11 2020 +0300
+++ b/src/http/ngx_http_request.c Fri Nov 06 23:44:47 2020 +0300
@@ -3039,13 +3039,6 @@ ngx_http_set_keepalive(ngx_http_request_

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;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Removed dead code from ngx_http_set_keepalive().

ru@nginx.com 628 November 06, 2020 03:46PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 324
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready