diff options
author | Igor Sysoev <igor@sysoev.ru> | 2019-02-26 19:12:16 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2019-02-26 19:12:16 +0300 |
commit | 444b9ffea90c3d3f8c06421a03f027c889b4a1e2 (patch) | |
tree | 69013a394c64a685a36a1fb4549f94f51047ae2f | |
parent | ce6ce15c2042421588cd7f0635744239caf1cb31 (diff) | |
download | unit-444b9ffea90c3d3f8c06421a03f027c889b4a1e2.tar.gz unit-444b9ffea90c3d3f8c06421a03f027c889b4a1e2.tar.bz2 |
Keepalive mode is disabled on HTTP header parsing errors.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_h1proto.c | 2 |
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); } |