diff options
author | Max Romanov <max.romanov@nginx.com> | 2021-11-24 13:11:47 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2021-11-24 13:11:47 +0300 |
commit | 2c636a03f35c1807fa0744b53d19f364b131dc1d (patch) | |
tree | c643468c53c4b8af5c64d4afecd4a8789d1c7ef2 /src/nxt_port.c | |
parent | ef1ebf96f300d9a2f487656ac827a9c166f57197 (diff) | |
download | unit-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 '')
-rw-r--r-- | src/nxt_port.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nxt_port.c b/src/nxt_port.c index 1e8fa28a..88d645af 100644 --- a/src/nxt_port.c +++ b/src/nxt_port.c @@ -176,8 +176,9 @@ nxt_port_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg) if (nxt_fast_path(msg->port_msg.type < NXT_PORT_MSG_MAX)) { - nxt_debug(task, "port %d: message type:%uD", - msg->port->socket.fd, msg->port_msg.type); + nxt_debug(task, "port %d: message type:%uD fds:%d,%d", + msg->port->socket.fd, msg->port_msg.type, + msg->fd[0], msg->fd[1]); handlers = msg->port->data; handlers[msg->port_msg.type](task, msg); |