mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

The cluster is borked if the initialization fails, so may as well just completely abort Zeek at that point with a fatal error. There's no real point in continuing to run.
18 lines
374 B
Text
18 lines
374 B
Text
##! Establish ZeroMQ connectivity with the broker.
|
|
|
|
@load ./main
|
|
|
|
module Cluster::Backend::ZeroMQ;
|
|
|
|
|
|
event zeek_init() &priority=10
|
|
{
|
|
if ( run_proxy_thread )
|
|
{
|
|
if ( ! Cluster::Backend::ZeroMQ::spawn_zmq_proxy_thread() )
|
|
Reporter::fatal("Failed to spawn ZeroMQ proxy thread");
|
|
}
|
|
|
|
if ( ! Cluster::init() )
|
|
Reporter::fatal("Failed initialize ZeroMQ backend");
|
|
}
|