diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:21:32 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-08-02 13:21:32 +0300 |
commit | 9367dd2bf8982d7dbe5e8c71643d3e5d5ee494e1 (patch) | |
tree | eb8b27d0f4faa8f630b6d1ec935f369d478d56ba /src/nxt_master_process.c | |
parent | bcf99f87e25d3702ec01595a5cf3e91c00cc6a98 (diff) | |
download | unit-9367dd2bf8982d7dbe5e8c71643d3e5d5ee494e1.tar.gz unit-9367dd2bf8982d7dbe5e8c71643d3e5d5ee494e1.tar.bz2 |
Implicit port read buffer completion.
To disable implicit completion, handler should reset msg->buf field.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_master_process.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nxt_master_process.c b/src/nxt_master_process.c index c35bb6b1..2bc97c1c 100644 --- a/src/nxt_master_process.c +++ b/src/nxt_master_process.c @@ -141,8 +141,6 @@ nxt_port_master_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) b = msg->buf; nxt_debug(task, "master data: %*s", b->mem.free - b->mem.pos, b->mem.pos); - - b->mem.pos = b->mem.free; } @@ -175,7 +173,6 @@ nxt_port_master_start_worker_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) start += app_conf.name.length + 1; conf = nxt_conf_json_parse(mp, start, b->mem.free); - b->mem.pos = b->mem.free; if (conf == NULL) { nxt_log(task, NXT_LOG_CRIT, "configuration parsing error"); |