diff options
| author | Konstantin Pavlov <thresh@nginx.com> | 2019-09-19 19:04:16 +0300 |
|---|---|---|
| committer | Konstantin Pavlov <thresh@nginx.com> | 2019-09-19 19:04:16 +0300 |
| commit | deb26fa47a9ab1b358938134a8ced8bbc4a083e1 (patch) | |
| tree | 0bedf8829f003fa4c0101e3421b7184acc1c8343 /src/nxt_h1proto_websocket.c | |
| parent | fcb1f851d0b5d1774a6cb876288ea29cfef58618 (diff) | |
| parent | db777d1e7f607d1b0f01dfb73ad0bac12987202b (diff) | |
| download | unit-deb26fa47a9ab1b358938134a8ced8bbc4a083e1.tar.gz unit-deb26fa47a9ab1b358938134a8ced8bbc4a083e1.tar.bz2 | |
Merged with the default branch.
Diffstat (limited to 'src/nxt_h1proto_websocket.c')
| -rw-r--r-- | src/nxt_h1proto_websocket.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/nxt_h1proto_websocket.c b/src/nxt_h1proto_websocket.c index dd9b6848..13754be0 100644 --- a/src/nxt_h1proto_websocket.c +++ b/src/nxt_h1proto_websocket.c @@ -417,16 +417,13 @@ nxt_h1p_conn_ws_frame_process(nxt_task_t *task, nxt_conn_t *c, uint8_t *p, *mask; uint16_t code; nxt_http_request_t *r; - nxt_event_engine_t *engine; - engine = task->thread->engine; r = h1p->request; c->read = NULL; if (nxt_slow_path(wsh->opcode == NXT_WEBSOCKET_OP_PING)) { - nxt_work_queue_add(&engine->fast_work_queue, nxt_h1p_conn_ws_pong, - task, r, NULL); + nxt_h1p_conn_ws_pong(task, r, NULL); return; } @@ -451,8 +448,7 @@ nxt_h1p_conn_ws_frame_process(nxt_task_t *task, nxt_conn_t *c, h1p->websocket_closed = 1; } - nxt_work_queue_add(&engine->fast_work_queue, r->state->ready_handler, - task, r, NULL); + r->state->ready_handler(task, r, NULL); } |
