summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-11-24 13:11:47 +0300
committerMax Romanov <max.romanov@nginx.com>2021-11-24 13:11:47 +0300
commit2c636a03f35c1807fa0744b53d19f364b131dc1d (patch)
treec643468c53c4b8af5c64d4afecd4a8789d1c7ef2 /src/nxt_unit.h
parentef1ebf96f300d9a2f487656ac827a9c166f57197 (diff)
downloadunit-2c636a03f35c1807fa0744b53d19f364b131dc1d.tar.gz
unit-2c636a03f35c1807fa0744b53d19f364b131dc1d.tar.bz2
Sending shared port to application prototype.
Application process started with shared port (and queue) already configured. But still waits for PORT_ACK message from router to start request processing (so-called "ready state"). Waiting for router confirmation is necessary. Otherwise, the application may produce response and send it to router before the router have the information about the application process. This is a subject of further optimizations.
Diffstat (limited to 'src/nxt_unit.h')
-rw-r--r--src/nxt_unit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_unit.h b/src/nxt_unit.h
index 1b5280af..35f9fa55 100644
--- a/src/nxt_unit.h
+++ b/src/nxt_unit.h
@@ -176,6 +176,8 @@ struct nxt_unit_init_s {
uint32_t ready_stream;
nxt_unit_port_t router_port;
nxt_unit_port_t read_port;
+ int shared_port_fd;
+ int shared_queue_fd;
int log_fd;
};