Hi ,I am looking the codes, just get a question in the file:ngx_http_push_stream_module_setup.c: 297-299 lines:
if ((rc = ngx_http_push_stream_init_ipc(cycle, ccf->worker_processes)) == NGX_OK) {
ngx_http_push_stream_alert_shutting_down_workers();
}
I can't understand the logic: it had just inited success and then destroy it? shoud it be like below:
if ((rc = ngx_http_push_stream_init_ipc(cycle, ccf->worker_processes)) != NGX_OK) {
ngx_http_push_stream_alert_shutting_down_workers();
}
or why does it close channels like that?
Thanks a lot.
Hi ,I am looking the codes, just get a question in the file:ngx_http_push_stream_module_setup.c: 297-299 lines: if ((rc = ngx_http_push_stream_init_ipc(cycle, ccf->worker_processes)) == NGX_OK) { ngx_http_push_stream_alert_shutting_down_workers(); }
I can't understand the logic: it had just inited success and then destroy it? shoud it be like below:
if ((rc = ngx_http_push_stream_init_ipc(cycle, ccf->worker_processes)) != NGX_OK) { ngx_http_push_stream_alert_shutting_down_workers(); }
or why does it close channels like that? Thanks a lot.