Moving request limit control to libunit.
Introducting application graceful stop. For now only used when application process reach request limit value. This closes #585 issue on GitHub.
This commit is contained in:
@@ -113,13 +113,13 @@ nxt_external_start(nxt_task_t *task, nxt_process_data_t *data)
|
||||
"%PI,%ud,%d;"
|
||||
"%PI,%ud,%d;"
|
||||
"%PI,%ud,%d,%d;"
|
||||
"%d,%z,%Z",
|
||||
"%d,%z,%uD,%Z",
|
||||
NXT_VERSION, my_port->process->stream,
|
||||
main_port->pid, main_port->id, main_port->pair[1],
|
||||
router_port->pid, router_port->id, router_port->pair[1],
|
||||
my_port->pid, my_port->id, my_port->pair[0],
|
||||
my_port->pair[1],
|
||||
2, conf->shm_limit);
|
||||
2, conf->shm_limit, conf->request_limit);
|
||||
|
||||
if (nxt_slow_path(p == end)) {
|
||||
nxt_alert(task, "internal error: buffer too small for NXT_UNIT_INIT");
|
||||
|
||||
Reference in New Issue
Block a user