Ignoring response for already terminated request.

Request can be terminated because of invalid response headers and content
should be ignored in this case.
This commit is contained in:
Max Romanov
2018-03-14 12:03:47 +03:00
parent bebc5845f8
commit 7958a22de0

View File

@@ -2655,6 +2655,9 @@ nxt_router_response_ready_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg,
} }
ar = rc->ap; ar = rc->ap;
if (nxt_slow_path(ar == NULL)) {
return;
}
if (msg->port_msg.last != 0) { if (msg->port_msg.last != 0) {
nxt_debug(task, "router data create last buf"); nxt_debug(task, "router data create last buf");