summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-11-14 16:40:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-11-14 16:40:02 +0300
commit02e197e9782ca19bd668c37c11f529f802823868 (patch)
tree90a2ca9205e55075648f885396b7c08a34b4672c /src/nxt_http.h
parentddde9c23cf302309d85ccc24b35075ce94da89a0 (diff)
downloadunit-02e197e9782ca19bd668c37c11f529f802823868.tar.gz
unit-02e197e9782ca19bd668c37c11f529f802823868.tar.bz2
Processing inconsistent proxied response length.
Keepalive connection is disabled if upstream response length differs from specified in the "Content-Length" field value.
Diffstat (limited to '')
-rw-r--r--src/nxt_http.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 784b12c4..030d77a7 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -112,6 +112,7 @@ typedef struct {
nxt_sockaddr_t *sockaddr;
nxt_list_t *fields;
nxt_buf_t *body;
+ nxt_off_t remainder;
nxt_http_status_t status:16;
nxt_http_protocol_t protocol:8; /* 2 bits */
@@ -170,6 +171,7 @@ struct nxt_http_request_s {
nxt_http_protocol_t protocol:8; /* 2 bits */
uint8_t logged; /* 1 bit */
uint8_t header_sent; /* 1 bit */
+ uint8_t inconsistent; /* 1 bit */
uint8_t error; /* 1 bit */
uint8_t websocket_handshake; /* 1 bit */
};