diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-03-19 20:43:35 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-03-19 20:43:35 +0300 |
commit | c26fbbe53a1ce656e05d3e1e86d019c6173715ab (patch) | |
tree | 37b848447ef47dc42cdc5ee3ae09254d230ebedc /src/nxt_http.h | |
parent | 93207d4a8c462525cf2160d2099e44b86aa68b27 (diff) | |
download | unit-c26fbbe53a1ce656e05d3e1e86d019c6173715ab.tar.gz unit-c26fbbe53a1ce656e05d3e1e86d019c6173715ab.tar.bz2 |
Completing request header buffers to avoid memory leak.
Before this fix, only persistent connection request buffers were completed.
This issue was introduced in dc403927ab0b.
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r-- | src/nxt_http.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h index 0e0694e5..36ce74c6 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -320,7 +320,8 @@ void nxt_h1p_websocket_first_frame_start(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *ws_frame); void nxt_h1p_websocket_frame_start(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *ws_frame); -void nxt_h1p_complete_buffers(nxt_task_t *task, nxt_h1proto_t *h1p); +void nxt_h1p_complete_buffers(nxt_task_t *task, nxt_h1proto_t *h1p, + nxt_bool_t all); nxt_msec_t nxt_h1p_conn_request_timer_value(nxt_conn_t *c, uintptr_t data); extern const nxt_conn_state_t nxt_h1p_idle_close_state; |