Force the Broker IOSource to idle periodically

Previously, if there was always input in each Process() call, then
the Broker IOSource would never go idle and could completely starve
out a packet IOSource since it would always report readiness with
a timestamp value of the last known network_time (which prevents
selecting a packet IOSource for processing, due to incoming packets
likely having timestamps that are later).
This commit is contained in:
Jon Siwek 2019-04-30 20:53:38 -07:00
parent 9a461d26e4
commit 32473b85b0
2 changed files with 28 additions and 1 deletions

View file

@ -382,6 +382,7 @@ private:
bool reading_pcaps;
bool after_zeek_init;
int peer_count;
int times_processed_without_idle;
Func* log_topic_func;
VectorType* vector_of_data_type;