summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-08-11 19:20:10 +0300
committerMax Romanov <max.romanov@nginx.com>2020-08-11 19:20:10 +0300
commit3cbc22a6dc45abdeade4deb364601230ddca02c1 (patch)
tree3eff409de1a4405c646a2c11633d50711fa22746 /src/nxt_process.c
parentbf647588ff781e606651f001b53a4e83bb34c000 (diff)
downloadunit-3cbc22a6dc45abdeade4deb364601230ddca02c1.tar.gz
unit-3cbc22a6dc45abdeade4deb364601230ddca02c1.tar.bz2
Changing router to application port exchange protocol.
The application process needs to request the port from the router instead of the latter pushing the port before sending a request to the application. This is required to simplify the communication between the router and the application and to prepare the router to use the application shared port and then the queue.
Diffstat (limited to 'src/nxt_process.c')
-rw-r--r--src/nxt_process.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/nxt_process.c b/src/nxt_process.c
index 5a01c21e..0b3aa40f 100644
--- a/src/nxt_process.c
+++ b/src/nxt_process.c
@@ -1108,43 +1108,6 @@ nxt_process_close_ports(nxt_task_t *task, nxt_process_t *process)
void
-nxt_process_connected_port_add(nxt_process_t *process, nxt_port_t *port)
-{
- nxt_thread_mutex_lock(&process->cp_mutex);
-
- nxt_port_hash_add(&process->connected_ports, port);
-
- nxt_thread_mutex_unlock(&process->cp_mutex);
-}
-
-
-void
-nxt_process_connected_port_remove(nxt_process_t *process, nxt_port_t *port)
-{
- nxt_thread_mutex_lock(&process->cp_mutex);
-
- nxt_port_hash_remove(&process->connected_ports, port);
-
- nxt_thread_mutex_unlock(&process->cp_mutex);
-}
-
-
-nxt_port_t *
-nxt_process_connected_port_find(nxt_process_t *process, nxt_port_t *port)
-{
- nxt_port_t *res;
-
- nxt_thread_mutex_lock(&process->cp_mutex);
-
- res = nxt_port_hash_find(&process->connected_ports, port->pid, port->id);
-
- nxt_thread_mutex_unlock(&process->cp_mutex);
-
- return res;
-}
-
-
-void
nxt_process_quit(nxt_task_t *task, nxt_uint_t exit_status)
{
nxt_uint_t n;