summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_rpc.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-03-21 16:55:09 +0300
committerMax Romanov <max.romanov@nginx.com>2018-03-21 16:55:09 +0300
commit778a90c319e47f688b749e43df33f3eb9dce3e72 (patch)
tree115b9ddb324332619f051c0ebe07472f1838fdf7 /src/nxt_port_rpc.h
parentb865db1bb74e821ff413a62089d699ed30905dd6 (diff)
downloadunit-778a90c319e47f688b749e43df33f3eb9dce3e72.tar.gz
unit-778a90c319e47f688b749e43df33f3eb9dce3e72.tar.bz2
Triggering RPC error for all handlers on port close.
This is required to avoid crashes and memory leaks on Unit exit.
Diffstat (limited to '')
-rw-r--r--src/nxt_port_rpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_port_rpc.h b/src/nxt_port_rpc.h
index 2152e68d..8011e474 100644
--- a/src/nxt_port_rpc.h
+++ b/src/nxt_port_rpc.h
@@ -26,6 +26,7 @@ void nxt_port_rpc_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg);
void nxt_port_rpc_remove_peer(nxt_task_t *task, nxt_port_t *port,
nxt_pid_t peer);
void nxt_port_rpc_cancel(nxt_task_t *task, nxt_port_t *port, uint32_t stream);
+void nxt_port_rpc_close(nxt_task_t *task, nxt_port_t *port);
#endif /* _NXT_PORT_RPC_H_INCLUDED_ */