summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-25 16:18:31 +0300
commit057c2526ee34e83fcace2d933f524be6d0f59fea (patch)
tree95a823d5e7c33e49be16ba618e07e507c3d83b29
parent5a756647ff7c65d1997bda9bcac4bf588149139a (diff)
downloadunit-057c2526ee34e83fcace2d933f524be6d0f59fea.tar.gz
unit-057c2526ee34e83fcace2d933f524be6d0f59fea.tar.bz2
Assign current request id to prevent port memory release.
Diffstat (limited to '')
-rw-r--r--src/nxt_router.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 5116234c..567c9df6 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -2091,6 +2091,7 @@ nxt_router_app_release_port(nxt_task_t *task, void *obj, void *data)
&app->name, app, ra->req_id);
ra->app_port = port;
+ port->app_req_id = ra->req_id;
nxt_router_process_http_request_mp(task, ra, port);