diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-02-28 18:03:21 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-02-28 18:03:21 +0300 |
commit | afda14d1f23cc49eee5939c25278eec3501d8631 (patch) | |
tree | bee5e31a439fb7c8333438640a44da0f2e162147 /src | |
parent | 5bfdebb9e4161a689113d73775498949a09d7fb5 (diff) | |
download | unit-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 '')
-rw-r--r-- | src/nxt_port_socket.c | 1 |
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; |