summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-02-26 19:12:16 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-02-26 19:12:16 +0300
commit444b9ffea90c3d3f8c06421a03f027c889b4a1e2 (patch)
tree69013a394c64a685a36a1fb4549f94f51047ae2f /src/nxt_h1proto.c
parentce6ce15c2042421588cd7f0635744239caf1cb31 (diff)
downloadunit-444b9ffea90c3d3f8c06421a03f027c889b4a1e2.tar.gz
unit-444b9ffea90c3d3f8c06421a03f027c889b4a1e2.tar.bz2
Keepalive mode is disabled on HTTP header parsing errors.
Diffstat (limited to 'src/nxt_h1proto.c')
-rw-r--r--src/nxt_h1proto.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_h1proto.c b/src/nxt_h1proto.c
index 4e1b22e9..b5b5d6e6 100644
--- a/src/nxt_h1proto.c
+++ b/src/nxt_h1proto.c
@@ -563,6 +563,8 @@ nxt_h1p_conn_request_header_parse(nxt_task_t *task, void *obj, void *data)
error:
+ h1p->keepalive = 0;
+
nxt_http_request_error(task, r, status);
}