mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00

* origin/topic/awelzel/4586-zeromq-ipv6:
cluster/zeromq: Short-circuit DoPublishLogWrite() when not initialized
cluster/zeromq: Hook up and enable IPV6 by default
cluster/zeromq/connect: Make failures fatal
cluster/zeromq: Move log_push creation to DoInit()
(cherry picked from commit cab4ebf513
)
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");
|
|
}
|