summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-11-14 16:39:48 +0300
commit14e56fe8c869af490f76b7e88ac5d02a7ab4dd89 (patch)
tree464bd0ffab93eff1a85d3c029f55ea0d599e6040 /src/nxt_router.c
parent96cd6558ce35216fe8cfd7663c7af3345e64c8a8 (diff)
downloadunit-14e56fe8c869af490f76b7e88ac5d02a7ab4dd89.tar.gz
unit-14e56fe8c869af490f76b7e88ac5d02a7ab4dd89.tar.bz2
Replacing pass with action.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 1e6e16aa..9025c813 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -1172,8 +1172,8 @@ nxt_router_conf_error(nxt_task_t *task, nxt_router_temp_conf_t *tmcf)
nxt_queue_each(skcf, &new_socket_confs, nxt_socket_conf_t, link) {
- if (skcf->pass != NULL) {
- nxt_http_pass_cleanup(task, skcf->pass);
+ if (skcf->action != NULL) {
+ nxt_http_action_cleanup(task, skcf->action);
}
} nxt_queue_loop;
@@ -1730,12 +1730,12 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
skcf->router_conf->count++;
if (lscf.pass.length != 0) {
- skcf->pass = nxt_http_pass_create(task, tmcf, &lscf.pass);
+ skcf->action = nxt_http_action_create(task, tmcf, &lscf.pass);
/* COMPATIBILITY: listener application. */
} else if (lscf.application.length > 0) {
- skcf->pass = nxt_http_pass_application(task, tmcf,
- &lscf.application);
+ skcf->action = nxt_http_pass_application(task, tmcf,
+ &lscf.application);
}
}
}
@@ -3071,8 +3071,8 @@ nxt_router_conf_release(nxt_task_t *task, nxt_socket_conf_joint_t *joint)
nxt_thread_spin_unlock(lock);
if (skcf != NULL) {
- if (skcf->pass != NULL) {
- nxt_http_pass_cleanup(task, skcf->pass);
+ if (skcf->action != NULL) {
+ nxt_http_action_cleanup(task, skcf->action);
}
#if (NXT_TLS)