From 6eb4a41364bedc461a58ebe486067ae3abc9aaa1 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Thu, 31 Aug 2017 11:42:12 -0700 Subject: Multiplexing different requests in single app port. --- src/nxt_router.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit