diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-03-14 12:03:47 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-03-14 12:03:47 +0300 |
commit | 7958a22de04a886850594674d487a091503b2df4 (patch) | |
tree | bcdf26be93300f91a5f8362874db33aaca36a722 | |
parent | bebc5845f8454e91d12f2fc2561686e627f2f9aa (diff) | |
download | unit-7958a22de04a886850594674d487a091503b2df4.tar.gz unit-7958a22de04a886850594674d487a091503b2df4.tar.bz2 |
Ignoring response for already terminated request.
Request can be terminated because of invalid response headers and content
should be ignored in this case.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_router.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index e5355612..39cfd3bc 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -2655,6 +2655,9 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg, } ar = rc->ap; + if (nxt_slow_path(ar == NULL)) { + return; + } if (msg->port_msg.last != 0) { nxt_debug(task, "router data create last buf"); |