From 02e197e9782ca19bd668c37c11f529f802823868 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 14 Nov 2019 16:40:02 +0300 Subject: Processing inconsistent proxied response length. Keepalive connection is disabled if upstream response length differs from specified in the "Content-Length" field value. --- src/nxt_h1proto.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nxt_h1proto.c') diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c index 064b8f38..b07eaf84 100644 --- a/src/nxt_h1proto.c +++ b/src/nxt_h1proto.c @@ -1549,6 +1549,7 @@ nxt_h1p_request_close(nxt_task_t *task, nxt_http_proto_t proto, nxt_debug(task, "h1p request close"); h1p = proto.h1; + h1p->keepalive &= !h1p->request->inconsistent; h1p->request = NULL; nxt_router_conf_release(task, joint); -- cgit