The controller did not work because of changes in the previous
changeset.
This commit is contained in:
@@ -98,7 +98,7 @@ nxt_controller_start(nxt_task_t *task, nxt_runtime_t *rt)
|
|||||||
|
|
||||||
nxt_controller_request_fields_hash = hash;
|
nxt_controller_request_fields_hash = hash;
|
||||||
|
|
||||||
if (nxt_event_conn_listen(task, rt->controller_socket) != NXT_OK) {
|
if (nxt_listen_event(task, rt->controller_socket) == NULL) {
|
||||||
return NXT_ERROR;
|
return NXT_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1392,7 +1392,7 @@ nxt_runtime_listen_sockets_enable(nxt_task_t *task, nxt_runtime_t *rt)
|
|||||||
|
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
if (ls[i].flags == NXT_NONBLOCK) {
|
if (ls[i].flags == NXT_NONBLOCK) {
|
||||||
if (nxt_event_conn_listen(task, &ls[i]) != NXT_OK) {
|
if (nxt_listen_event(task, &ls[i]) == NULL) {
|
||||||
return NXT_ERROR;
|
return NXT_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user