mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add Broker::peer_counts_as_iosource option
Disabling this option allows one to read pcaps, but still initiate Broker peerings and automatically exit when done processing the pcap file. The default behavior would normally cause Broker::peer() to prevent shutting the process down even after done reading the pcap.
This commit is contained in:
parent
5eab9b9d47
commit
0d685efbf5
6 changed files with 49 additions and 10 deletions
|
@ -96,6 +96,13 @@ export {
|
|||
## Forward all received messages to subscribing peers.
|
||||
const forward_messages = F &redef;
|
||||
|
||||
## Whether calling :bro:see:`Broker::peer` will register the Broker
|
||||
## system as an I/O source that will block the process from shutting
|
||||
## down. For example, set this to false when you are reading pcaps,
|
||||
## but also want to initaiate a Broker peering and still shutdown after
|
||||
## done reading the pcap.
|
||||
option peer_counts_as_iosource = T;
|
||||
|
||||
## The default topic prefix where logs will be published. The log's stream
|
||||
## id is appended when writing to a particular stream.
|
||||
const default_log_topic_prefix = "bro/logs/" &redef;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue