nxt_external.c (1668:03fa2be97871) nxt_external.c (1980:43553aa72111)
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_router.h>

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

108
109 end = buf + sizeof(buf);
110
111 p = nxt_sprintf(buf, end,
112 "%s;%uD;"
113 "%PI,%ud,%d;"
114 "%PI,%ud,%d;"
115 "%PI,%ud,%d,%d;"
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8#include <nxt_router.h>

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

108
109 end = buf + sizeof(buf);
110
111 p = nxt_sprintf(buf, end,
112 "%s;%uD;"
113 "%PI,%ud,%d;"
114 "%PI,%ud,%d;"
115 "%PI,%ud,%d,%d;"
116 "%d,%z,%Z",
116 "%d,%z,%uD,%Z",
117 NXT_VERSION, my_port->process->stream,
118 main_port->pid, main_port->id, main_port->pair[1],
119 router_port->pid, router_port->id, router_port->pair[1],
120 my_port->pid, my_port->id, my_port->pair[0],
121 my_port->pair[1],
117 NXT_VERSION, my_port->process->stream,
118 main_port->pid, main_port->id, main_port->pair[1],
119 router_port->pid, router_port->id, router_port->pair[1],
120 my_port->pid, my_port->id, my_port->pair[0],
121 my_port->pair[1],
122 2, conf->shm_limit);
122 2, conf->shm_limit, conf->request_limit);
123
124 if (nxt_slow_path(p == end)) {
125 nxt_alert(task, "internal error: buffer too small for NXT_UNIT_INIT");
126
127 return NXT_ERROR;
128 }
129
130 nxt_debug(task, "update "NXT_UNIT_INIT_ENV"=%s", buf);

--- 66 unchanged lines hidden ---
123
124 if (nxt_slow_path(p == end)) {
125 nxt_alert(task, "internal error: buffer too small for NXT_UNIT_INIT");
126
127 return NXT_ERROR;
128 }
129
130 nxt_debug(task, "update "NXT_UNIT_INIT_ENV"=%s", buf);

--- 66 unchanged lines hidden ---