diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-02-25 18:09:37 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-02-25 18:09:37 +0300 |
commit | bd1eb7b502e3c9b3c3854fafd6ad360eca11c50a (patch) | |
tree | 7ea674c649db2d402b4d9928d5386a001555f159 | |
parent | d8c0a0dbe25c2467b6b8ba866cfd67613ff2014a (diff) | |
download | unit-bd1eb7b502e3c9b3c3854fafd6ad360eca11c50a.tar.gz unit-bd1eb7b502e3c9b3c3854fafd6ad360eca11c50a.tar.bz2 |
RPC error message size fixed.
In case of RPC error, special error message passed to handler.
Field 'size' expected to be 0 in this case because in contains fake
empty buffer.
-rw-r--r-- | src/nxt_port_rpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_port_rpc.c b/src/nxt_port_rpc.c index 401707f0..77e8af45 100644 --- a/src/nxt_port_rpc.c +++ b/src/nxt_port_rpc.c @@ -489,7 +489,7 @@ nxt_port_rpc_close(nxt_task_t *task, nxt_port_t *port) msg.port_msg.nf = 0; msg.port_msg.mf = 0; msg.port_msg.tracking = 0; - msg.size = sizeof(msg.port_msg); + msg.size = 0; msg.cancelled = 0; msg.u.data = NULL; |