Processing inconsistent proxied response length.

Keepalive connection is disabled if upstream response length
differs from specified in the "Content-Length" field value.
This commit is contained in:
Igor Sysoev
2019-11-14 16:40:02 +03:00
parent ddde9c23cf
commit 02e197e978
4 changed files with 32 additions and 3 deletions

View File

@@ -183,7 +183,10 @@ nxt_buf_chain_length(nxt_buf_t *b)
length = 0;
while (b != NULL) {
length += b->mem.free - b->mem.pos;
if (!nxt_buf_is_sync(b)) {
length += b->mem.free - b->mem.pos;
}
b = b->next;
}