Basic njs support.

This commit is contained in:
Zhidao HONG
2022-11-20 23:16:51 +08:00
parent 4735931ace
commit 4d6d146e92
20 changed files with 507 additions and 44 deletions

View File

@@ -1060,7 +1060,7 @@ nxt_router_temp_conf(nxt_task_t *task)
rtcf->mem_pool = mp;
rtcf->tstr_state = nxt_tstr_state_new(mp);
rtcf->tstr_state = nxt_tstr_state_new(mp, 0);
if (nxt_slow_path(rtcf->tstr_state == NULL)) {
goto fail;
}
@@ -2042,6 +2042,11 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
}
}
ret = nxt_tstr_state_done(rtcf->tstr_state, NULL);
if (nxt_slow_path(ret != NXT_OK)) {
goto fail;
}
nxt_queue_add(&deleting_sockets, &router->sockets);
nxt_queue_init(&router->sockets);