summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-11-24 13:11:48 +0300
committerMax Romanov <max.romanov@nginx.com>2021-11-24 13:11:48 +0300
commit9e2e69dd58f01005e088b55466e67c0eafc2a414 (patch)
tree448e607f8696345f145e63d973d1bbe56385e0b3 /src/nxt_port.c
parent2c636a03f35c1807fa0744b53d19f364b131dc1d (diff)
downloadunit-9e2e69dd58f01005e088b55466e67c0eafc2a414.tar.gz
unit-9e2e69dd58f01005e088b55466e67c0eafc2a414.tar.bz2
Fixing alerts on router restart.
Splitting the process type connectivity matrix to 'keep ports' and 'send ports'; the 'keep ports' matrix is used to clean up unnecessary ports after forking a new process, and the 'send ports' matrix determines which process types expect to get created process ports. Unfortunately, the original single connectivity matrix no longer works because of an application stop delay caused by prototypes. Existing applications should not get the new router port at the moment.
Diffstat (limited to 'src/nxt_port.c')
-rw-r--r--src/nxt_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c
index 88d645af..ed7050f3 100644
--- a/src/nxt_port.c
+++ b/src/nxt_port.c
@@ -217,7 +217,7 @@ nxt_port_send_new_port(nxt_task_t *task, nxt_runtime_t *rt,
port = nxt_process_port_first(process);
- if (nxt_proc_conn_matrix[port->type][new_port->type]) {
+ if (nxt_proc_send_matrix[port->type][new_port->type]) {
(void) nxt_port_send_port(task, port, new_port, stream);
}