nxt_controller.c (1451:0a8840921fd0) nxt_controller.c (1459:358b957ca294)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

--- 116 unchanged lines hidden (view full) ---

125
126
127nxt_int_t
128nxt_controller_start(nxt_task_t *task, void *data)
129{
130 nxt_mp_t *mp;
131 nxt_int_t ret;
132 nxt_str_t *json;
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_main.h>

--- 116 unchanged lines hidden (view full) ---

125
126
127nxt_int_t
128nxt_controller_start(nxt_task_t *task, void *data)
129{
130 nxt_mp_t *mp;
131 nxt_int_t ret;
132 nxt_str_t *json;
133 nxt_runtime_t *rt;
134 nxt_conf_value_t *conf;
135 nxt_conf_validation_t vldt;
136 nxt_controller_init_t *init;
137
133 nxt_conf_value_t *conf;
134 nxt_conf_validation_t vldt;
135 nxt_controller_init_t *init;
136
138 rt = task->thread->runtime;
139
140 ret = nxt_http_fields_hash(&nxt_controller_fields_hash, rt->mem_pool,
137 ret = nxt_http_fields_hash(&nxt_controller_fields_hash,
141 nxt_controller_request_fields,
142 nxt_nitems(nxt_controller_request_fields));
143
144 if (nxt_slow_path(ret != NXT_OK)) {
145 return NXT_ERROR;
146 }
147
148 nxt_queue_init(&nxt_controller_waiting_requests);

--- 1584 unchanged lines hidden ---
138 nxt_controller_request_fields,
139 nxt_nitems(nxt_controller_request_fields));
140
141 if (nxt_slow_path(ret != NXT_OK)) {
142 return NXT_ERROR;
143 }
144
145 nxt_queue_init(&nxt_controller_waiting_requests);

--- 1584 unchanged lines hidden ---