Triggering RPC error for all handlers on port close.

This is required to avoid crashes and memory leaks on Unit exit.
This commit is contained in:
Max Romanov
2018-03-21 16:55:09 +03:00
parent b865db1bb7
commit 778a90c319
3 changed files with 41 additions and 0 deletions

View File

@@ -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_ */