summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_socket.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-11 18:04:04 +0300
committerMax Romanov <max.romanov@nginx.com>2017-08-11 18:04:04 +0300
commit1b354421c33917239a793e891e3d43e02566e550 (patch)
treea7296360227a961c680b6a70f9e836ce691db646 /src/nxt_port_socket.c
parent70d73d633bc92fca9fe311fdb1ba7af1b2599c9e (diff)
downloadunit-1b354421c33917239a793e891e3d43e02566e550.tar.gz
unit-1b354421c33917239a793e891e3d43e02566e550.tar.bz2
Tiny mmap buffers completion fixed.
Small mmap buffers transferred in 'plain' mode and should be freed by sender.
Diffstat (limited to 'src/nxt_port_socket.c')
-rw-r--r--src/nxt_port_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_port_socket.c b/src/nxt_port_socket.c
index 01e46f93..de11549b 100644
--- a/src/nxt_port_socket.c
+++ b/src/nxt_port_socket.c
@@ -308,7 +308,8 @@ nxt_port_write_handler(nxt_task_t *task, void *obj, void *data)
wq = &task->thread->engine->fast_work_queue;
- msg->buf = nxt_sendbuf_completion(task, wq, msg->buf, plain_size);
+ msg->buf = nxt_sendbuf_completion(task, wq, msg->buf, plain_size,
+ m == NXT_PORT_METHOD_MMAP);
if (msg->buf != NULL) {
/*