Completing request header buffers to avoid memory leak.

Before this fix, only persistent connection request buffers were completed.

This issue was introduced in dc403927ab0b.
This commit is contained in:
Max Romanov
2020-03-19 20:43:35 +03:00
parent 93207d4a8c
commit c26fbbe53a
3 changed files with 29 additions and 22 deletions

View File

@@ -135,7 +135,7 @@ nxt_h1p_websocket_frame_start(nxt_task_t *task, nxt_http_request_t *r,
c = h1p->conn;
c->read = ws_frame;
nxt_h1p_complete_buffers(task, h1p);
nxt_h1p_complete_buffers(task, h1p, 0);
in = c->read;
c->read_state = &nxt_h1p_read_ws_frame_header_state;