summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_socket.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2019-02-28 18:03:21 +0300
committerMax Romanov <max.romanov@nginx.com>2019-02-28 18:03:21 +0300
commitafda14d1f23cc49eee5939c25278eec3501d8631 (patch)
treebee5e31a439fb7c8333438640a44da0f2e162147 /src/nxt_port_socket.c
parent5bfdebb9e4161a689113d73775498949a09d7fb5 (diff)
downloadunit-afda14d1f23cc49eee5939c25278eec3501d8631.tar.gz
unit-afda14d1f23cc49eee5939c25278eec3501d8631.tar.bz2
Preserving message 'share' field when pushing to queue.
As far as I understand, this field is important to control the number of buffers send in a single write attempt. Furthermore, having uninitialized field is always bad. This closes #204 issue on GitHub. Thanks to 洪志道 (Hong Zhi Dao).
Diffstat (limited to 'src/nxt_port_socket.c')
-rw-r--r--src/nxt_port_socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_port_socket.c b/src/nxt_port_socket.c
index aed3a292..01fe2dab 100644
--- a/src/nxt_port_socket.c
+++ b/src/nxt_port_socket.c
@@ -179,6 +179,7 @@ nxt_port_msg_create(nxt_task_t *task, nxt_port_send_msg_t *m)
msg->link.prev = NULL;
msg->buf = m->buf;
+ msg->share = m->share;
msg->fd = m->fd;
msg->close_fd = m->close_fd;
msg->port_msg = m->port_msg;