summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_h1proto_websocket.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-03-19 20:43:35 +0300
committerMax Romanov <max.romanov@nginx.com>2020-03-19 20:43:35 +0300
commitc26fbbe53a1ce656e05d3e1e86d019c6173715ab (patch)
tree37b848447ef47dc42cdc5ee3ae09254d230ebedc /src/nxt_h1proto_websocket.c
parent93207d4a8c462525cf2160d2099e44b86aa68b27 (diff)
downloadunit-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 '')
-rw-r--r--src/nxt_h1proto_websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_h1proto_websocket.c b/src/nxt_h1proto_websocket.c
index c9ff899c..42a50a34 100644
--- a/src/nxt_h1proto_websocket.c
+++ b/src/nxt_h1proto_websocket.c
@@ -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;