summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-08-31 11:42:12 -0700
committerMax Romanov <max.romanov@nginx.com>2017-08-31 11:42:12 -0700
commit6eb4a41364bedc461a58ebe486067ae3abc9aaa1 (patch)
treecc9bd5068ee02aa64994c087c84d77a2f9130fff /src/nxt_router.c
parentfc687e050871bf114bcadff7ec86f688f4b8c0e3 (diff)
downloadunit-6eb4a41364bedc461a58ebe486067ae3abc9aaa1.tar.gz
unit-6eb4a41364bedc461a58ebe486067ae3abc9aaa1.tar.bz2
Multiplexing different requests in single app port.
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 08dd95ff..6cadb816 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -298,12 +298,17 @@ nxt_router_ra_release(nxt_task_t *task, void *obj, void *data)
if (ra->app_port != NULL) {
+ nxt_router_app_release_port(task, ra->app_port, ra->app_port->app);
+
+#if 0
+ /* Uncomment to hold app port until complete response received. */
if (ra->rc->conn != NULL) {
ra->rc->app_port = ra->app_port;
} else {
nxt_router_app_release_port(task, ra->app_port, ra->app_port->app);
}
+#endif
}
nxt_mp_release(ra->mem_pool, ra);