summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:28 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-18 00:21:28 +0300
commit6b6fefa497fac704c729fcd784f0e2561ba9656a (patch)
treef60ac011ba9625a618294082989ae0e0dddfd990 /src/nxt_port.h
parent31e5992f88cd872cafa3b6384753d2970ba10041 (diff)
downloadunit-6b6fefa497fac704c729fcd784f0e2561ba9656a.tar.gz
unit-6b6fefa497fac704c729fcd784f0e2561ba9656a.tar.bz2
Request-app link introduced to prevent mp destroy for penging requests.
nxt_req_conn_link_t still used for lookup connection by request id. New nxt_req_app_link_t (ra) allocated from conn->mem_pool using mp_retain(). ra stored in app->requests if there is no free worker to process request.
Diffstat (limited to '')
-rw-r--r--src/nxt_port.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h
index d6156015..cd28d4f3 100644
--- a/src/nxt_port.h
+++ b/src/nxt_port.h
@@ -74,6 +74,7 @@ struct nxt_port_s {
uint32_t max_size;
/* Maximum interleave of message parts. */
uint32_t max_share;
+ uint32_t app_req_id;
nxt_port_handler_t handler;
nxt_port_handler_t *data;