diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-08-31 11:42:12 -0700 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-08-31 11:42:12 -0700 |
commit | 6eb4a41364bedc461a58ebe486067ae3abc9aaa1 (patch) | |
tree | cc9bd5068ee02aa64994c087c84d77a2f9130fff /src/nxt_router.c | |
parent | fc687e050871bf114bcadff7ec86f688f4b8c0e3 (diff) | |
download | unit-6eb4a41364bedc461a58ebe486067ae3abc9aaa1.tar.gz unit-6eb4a41364bedc461a58ebe486067ae3abc9aaa1.tar.bz2 |
Multiplexing different requests in single app port.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r-- | src/nxt_router.c | 5 |
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); |