summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_master_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-02 13:21:32 +0300
committerMax Romanov <max.romanov@nginx.com>2017-08-02 13:21:32 +0300
commit9367dd2bf8982d7dbe5e8c71643d3e5d5ee494e1 (patch)
treeeb8b27d0f4faa8f630b6d1ec935f369d478d56ba /src/nxt_master_process.c
parentbcf99f87e25d3702ec01595a5cf3e91c00cc6a98 (diff)
downloadunit-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.c3
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");