MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / stream_process

Function stream_process

modules/event_stream/stream_send.c:712–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710
711
712void stream_process(int rank)
713{
714 /* suppress the E_CORE_LOG event for new logs while handling
715 * the event itself */
716 suppress_proc_log_event();
717
718 if (init_worker_reactor("event_stream Sender", RCT_PRIO_MAX) != 0) {
719 LM_BUG("failed to init event_stream reactor");
720 abort();
721 }
722 jsonrpc_init_reader();
723
724 if (reactor_add_reader(stream_pipe[0], F_EV_JSONRPC_CMD, RCT_PRIO_ASYNC, NULL)<0){
725 LM_CRIT("failed to add event_stream pipe to reactor\n");
726 abort();
727 }
728
729 reactor_main_loop(STREAM_REACTOR_TIMEOUT, out_err, stream_cleanup_old());
730
731out_err:
732 destroy_io_wait(&_worker_io);
733 reset_proc_log_event();
734 abort();
735}

Callers

nothing calls this directly

Calls 5

suppress_proc_log_eventFunction · 0.85
jsonrpc_init_readerFunction · 0.85
stream_cleanup_oldFunction · 0.85
destroy_io_waitFunction · 0.85
reset_proc_log_eventFunction · 0.85

Tested by

no test coverage detected