nxt_router.c (177:54c6f3a0edf3) nxt_router.c (180:3453139f9728)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

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

377 tmcf->port = nxt_runtime_port_find(task->thread->runtime,
378 msg->port_msg.pid, 0);
379
380 ret = nxt_router_conf_new(task, tmcf, b->mem.pos, b->mem.free);
381
382 b->mem.pos = b->mem.free;
383
384 if (ret == NXT_OK) {
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#include <nxt_router.h>

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

377 tmcf->port = nxt_runtime_port_find(task->thread->runtime,
378 msg->port_msg.pid, 0);
379
380 ret = nxt_router_conf_new(task, tmcf, b->mem.pos, b->mem.free);
381
382 b->mem.pos = b->mem.free;
383
384 if (ret == NXT_OK) {
385 return nxt_router_conf_success(task, tmcf);
385 nxt_router_conf_success(task, tmcf);
386 return;
386 }
387
388 nxt_log(task, NXT_LOG_CRIT, "failed to apply new conf");
389
387 }
388
389 nxt_log(task, NXT_LOG_CRIT, "failed to apply new conf");
390
390 return nxt_router_conf_error(task, tmcf);
391 nxt_router_conf_error(task, tmcf);
391}
392
393
394static nxt_router_temp_conf_t *
395nxt_router_temp_conf(nxt_task_t *task)
396{
397 nxt_mp_t *mp, *tmp;
398 nxt_router_conf_t *rtcf;

--- 2288 unchanged lines hidden ---
392}
393
394
395static nxt_router_temp_conf_t *
396nxt_router_temp_conf(nxt_task_t *task)
397{
398 nxt_mp_t *mp, *tmp;
399 nxt_router_conf_t *rtcf;

--- 2288 unchanged lines hidden ---